From 5b11105ac5a3be2ab49c6ee4228bd77933365e33 Mon Sep 17 00:00:00 2001 From: 94726 Date: Wed, 14 Dec 2022 21:24:46 +0100 Subject: [PATCH] fix(useWindowScroll): use configured window onScroll --- packages/core/useWindowScroll/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/useWindowScroll/index.ts b/packages/core/useWindowScroll/index.ts index f63459c0b0d..04d8ae02f01 100644 --- a/packages/core/useWindowScroll/index.ts +++ b/packages/core/useWindowScroll/index.ts @@ -21,6 +21,7 @@ export function useWindowScroll({ window = defaultWindow }: ConfigurableWindow = const y = ref(window.pageYOffset) useEventListener( + window, 'scroll', () => { x.value = window.pageXOffset