whatwg / compat

Compatibility Standard
https://compat.spec.whatwg.org/
Other
114 stars 41 forks source link

mousewheel and DOMMouseScroll are being used instead of wheel #141

Open karlcow opened 3 years ago

karlcow commented 3 years ago

What should be done and standardized.

Issue 580126: Standardize legacy 'mousewheel' event https://bugs.chromium.org/p/chromium/issues/detail?id=580126

Consider supporting the legacy mousewheel event for interop. https://bugzilla.mozilla.org/show_bug.cgi?id=1529953

karlcow commented 3 years ago

See for example https://github.com/greensock/GSAP/issues/434

https://github.com/codemirror/CodeMirror/blob/8bc57f76383e62e1a03c7d97c9eac74493fdbedc/src/edit/CodeMirror.js#L193-L195

karlcow commented 3 years ago

4% mousewheel on February 2021 https://www.chromestatus.com/metrics/feature/timeline/popularity/1125

In the process of creating telemetry for DOMMouseScroll and MozMousePixelScroll for Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1241602

miketaylr commented 3 years ago

If I'm reading this correctly, dommousescroll is present on ~4.5% of pages in Firefox as well:

https://telemetry.mozilla.org/new-pipeline/evo.html#!aggregates=False%2520percentage!True%2520percentage!Invalid%2520value%2520percentage&cumulative=0&end_date=2021-07-05&include_spill=0&keys=!__none__!__none__&max_channel_version=beta%252F90&measure=USE_COUNTER2_ONDOMMOUSESCROLL_PAGE&min_channel_version=beta%252F88&processType=*&product=Firefox&sanitize=1&sort_keys=submissions&start_date=2021-06-01&trim=1&use_submission_date=0

Probably lots of code similar to the example karl linked:

 on(d.scroller, "mousewheel", e => onScrollWheel(cm, e))
 on(d.scroller, "DOMMouseScroll", e => onScrollWheel(cm, e))