Skip to content

Commit

Permalink
rm an extra call of getScrollTop (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: bcastlel <bcastlel@users.noreply.github.com>
  • Loading branch information
bcastlel and bcastlel authored Jan 27, 2024
1 parent 10d0dda commit be8a58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-use-fixed-header/src/useFixedHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function useFixedHeader(
}
}

prevTop = getScrollTop()
prevTop = scrollTop
}
}

Expand Down

0 comments on commit be8a58c

Please sign in to comment.