-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
passive event listeners #3720
Comments
I would guess that this is not applicable to GL JS since we rely on |
This is related to #4259, but independent. Specifically, we could opt to pass Because EventListenerOptions is not available on all targeted browsers, we will need to conditionalize its use, likely by writing internal utility methods wrapping |
Upgraded to Chrome 58 and it started complaining about this: scroll_zoom.js:49 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive.
scroll_zoom.js:50 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.
drag_pan.js:59 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
touch_zoom_rotate.js:54 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
bind_handlers.js:33 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
bind_handlers.js:35 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. |
I'm getting the same behavior @mourner since adding Was hoping to be able to add |
#6248 will silence the log messages from Chrome. As a further step, we could explicitly specify
The caveat to this is that it'll have publicly visible side effects, namely whether or not |
I am working with most.js stream framework to catch mapbox events in streams and stumble on this (since I got the message in my browser)
http://stackoverflow.com/questions/39152877/consider-marking-event-handler-as-passive-to-make-the-page-more-responive
So are passive event listeners implemented yet in mapbox gl js?
The text was updated successfully, but these errors were encountered: