Skip to content

Commit

Permalink
fix: useRect scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley authored Sep 16, 2022
1 parent cfb2dab commit dd34352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useRect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function useRect(
rerender()
}

document.addEventListener('scroll', cb)
document.addEventListener('scroll', cb, true)

return () => {
document.removeEventListener('scroll', cb)
Expand Down

0 comments on commit dd34352

Please sign in to comment.