Skip to content

Commit be8a58c

Browse files
authored
rm an extra call of getScrollTop (#2)
Co-authored-by: bcastlel <[email protected]>
1 parent 10d0dda commit be8a58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-use-fixed-header/src/useFixedHeader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function useFixedHeader(
186186
}
187187
}
188188

189-
prevTop = getScrollTop()
189+
prevTop = scrollTop
190190
}
191191
}
192192

0 commit comments

Comments
 (0)