mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +00:00
fix: remove passive from removelistener
This commit is contained in:
parent
e9335b1f6f
commit
3dad5ef491
1 changed files with 1 additions and 1 deletions
|
|
@ -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() })
|
||||
|
|
|
|||
Loading…
Reference in a new issue