compat icon indicating copy to clipboard operation
compat copied to clipboard

mousewheel and DOMMouseScroll are being used instead of wheel

Open karlcow opened this issue 3 years ago • 3 comments

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 avatar Feb 26 '21 06:02 karlcow

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

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

karlcow avatar Feb 26 '21 06:02 karlcow

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

karlcow avatar Feb 26 '21 06:02 karlcow

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))

miketaylr avatar Aug 06 '21 18:08 miketaylr