fix: remove passive from removelistener

This commit is contained in:
ThaUnknown 2023-12-29 09:41:11 +01:00
parent e9335b1f6f
commit 3dad5ef491

View file

@ -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() })