Summary: Make wheel / DOMMouseScroll / MozMousePixelScroll event listeners on the root passive by default.

This effectively aligns with Chromium (see [1]), and with touchstart / touchmove events.

Bug: 1673278

Standard: None, this is an intervention, though https://w3c.github.io/uievents/#cancelability-of-wheel-events is loosely related.

https://github.com/WICG/interventions/issues/64 is the main discussion.

Platform coverage: all

Preference: dom.event.default_to_passive_wheel_listeners

DevTools bug: N/A

Other browsers: Chromium-based browsers ship this since basically forever. WebKit doesn't implement this, but it does implement a similar quirk for touch events (as above), and I think implementing this would allow them to get rid of a nasty hack in their events code too[2] (interestingly chromium still keeps their smoothscroll.js intervention, though I think it's just dead code at this point, I filed [3] for that).

web-platform-tests: This is not tested by WPT, as it's an intervention. If WebKit decides to implement we should probably put this in a spec and move tests there.

Cheers,

 -- Emilio

[1]: https://developers.google.com/web/updates/2019/02/scrolling-intervention
[2]: https://bugs.webkit.org/show_bug.cgi?id=207040
[3]: https://bugs.chromium.org/p/chromium/issues/detail?id=1142482
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to