Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(useWindowScroll): use configured window onScroll (#2545)
  • Loading branch information
94726 committed Dec 16, 2022
1 parent 56e81a6 commit 5df0ab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/useWindowScroll/index.ts
Expand Up @@ -21,6 +21,7 @@ export function useWindowScroll({ window = defaultWindow }: ConfigurableWindow =
const y = ref(window.pageYOffset)

useEventListener(
window,
'scroll',
() => {
x.value = window.pageXOffset
Expand Down

0 comments on commit 5df0ab6

Please sign in to comment.