Skip to content

Commit

Permalink
fix: remove passive from removelistener
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Dec 29, 2023
1 parent e9335b1 commit 3dad5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
// as lightweight as possible scroll position tracking for mobile touch
t.addEventListener('touchmove', updateScrollPosition)
t.addEventListener('touchstart', () => t.removeEventListener('scroll', updateScrollPosition, { passive: true }))
t.addEventListener('touchstart', () => t.removeEventListener('scroll', updateScrollPosition))
t.addEventListener('touchend', () => t.addEventListener('scroll', updateScrollPosition, { passive: true }))
t.addEventListener('pointerup', () => { pos = scrollTop = updateScrollPosition() })
Expand Down

0 comments on commit 3dad5ef

Please sign in to comment.