You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jstarry@tarkah
Sent a PR: #958, please help review.
not sure simply use $name == "touchstart" || $name == "touchmove" or setup a static HashSet like LISTENER_SET for the checking.
Problem
When event listeners are passive, it's not possible to call
event.prevent_default()
. This behavior is confusing and unexpected.Proposed Solution
We should only set passive event listeners for
touchstart
andtouchmove
. See here: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listenersThe text was updated successfully, but these errors were encountered: