diff --git a/packages/core/useElementBounding/index.ts b/packages/core/useElementBounding/index.ts index 28777941327..18c6c30dbdc 100644 --- a/packages/core/useElementBounding/index.ts +++ b/packages/core/useElementBounding/index.ts @@ -93,7 +93,7 @@ export function useElementBounding( watch(() => unrefElement(target), ele => !ele && update()) if (windowScroll) - useEventListener('scroll', update, { passive: true }) + useEventListener('scroll', update, { capture: true, passive: true }) if (windowResize) useEventListener('resize', update, { passive: true })