Intent to Implement: Treat Document Level Wheel/Mousewheel Event Listeners as Passive

271 views
Skip to first unread message

Sahel Sharifymoghaddam

unread,
Aug 8, 2018, 1:00:31 PM8/8/18
to blin...@chromium.org
sa...@chromium.org Explainer
wheel/mousewheel event listeners that are registered on document level targets (window.document, window.document.body, or window) will be treated as passive if not specified otherwise and Calling preventDefault inside such listeners will be ignored. This is the wheel version of the scrolling intervention which is shipped in M56: https://developers.google.com/web/updates/2017/01/scrolling-intervention On Windows and Mac platforms scrolling by mouse wheel (and touchpad) accounts for more than 90% and 96% of scrolling respectively.
75% of the wheel event listeners added to a document level element do not specify passive option, in these cases the browser needs to wait for the event to get handled before it starts scrolling even though more than 98% of such listeners do not call preventDefault().

Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signals

I have not added a new issue to WICG/interventions, yet, but considering that Firefox and Safari have enabled the equivalent touch scroll intervention, I expect to see positive responses on this intervention as well.
Less than 0.3% of the pages might be impacted negatively. These are the pages that have a document level wheel event listener that has not specified passive option but calls preventDefault(). Explicitly setting passive:false for such listeners resolves the issue. UKM use counts will be added to find such URLs and approach them as needed.
Yes https://crbug.com/626196 https://www.chromestatus.com/features/6662647093133312
No

Rick James MSFT

unread,
Feb 12, 2019, 7:25:44 PM2/12/19
to blink-dev
What is the best way to report site regressions caused by this change?

Emil A Eklund

unread,
Feb 12, 2019, 7:33:09 PM2/12/19
to Rick James MSFT, blink-dev
Filing a bug is the best way. I cc:ed the contact person.
> --
> You received this message because you are subscribed to the Google Groups "blink-dev" group.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/2e6b87c2-4085-492b-88a1-197d43b77002%40chromium.org.
Reply all
Reply to author
Forward
0 new messages