Skip to content

Commit

Permalink
fix: IndexBar scroll into view with offset
Browse files Browse the repository at this point in the history
  • Loading branch information
AdonLee authored Jul 10, 2023
1 parent 71f0f02 commit 8dbb765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vantui/src/index-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function IndexBar(props: IndexBarProps) {
(top) => {
pageScrollTo({
duration: 0,
scrollTop: top + stickyOffsetTop,
scrollTop: top - stickyOffsetTop,
})
},
[stickyOffsetTop],
Expand Down

0 comments on commit 8dbb765

Please sign in to comment.