diff --git a/packages/vue-use-fixed-header/src/useFixedHeader.ts b/packages/vue-use-fixed-header/src/useFixedHeader.ts index 4207ec0..14c28f9 100644 --- a/packages/vue-use-fixed-header/src/useFixedHeader.ts +++ b/packages/vue-use-fixed-header/src/useFixedHeader.ts @@ -186,7 +186,7 @@ export function useFixedHeader( } } - prevTop = getScrollTop() + prevTop = scrollTop } }