From cb60eb3caa340913fa5a2935a83c60abc011792f Mon Sep 17 00:00:00 2001 From: bcastlel Date: Sat, 27 Jan 2024 21:11:57 +0400 Subject: [PATCH] rm an extra call of getScrollTop --- packages/vue-use-fixed-header/src/useFixedHeader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }