diff --git a/src/hooks/useRect.ts b/src/hooks/useRect.ts index aabbd021..a2649a0d 100644 --- a/src/hooks/useRect.ts +++ b/src/hooks/useRect.ts @@ -37,7 +37,7 @@ export default function useRect( rerender() } - document.addEventListener('scroll', cb) + document.addEventListener('scroll', cb, true) return () => { document.removeEventListener('scroll', cb)