Re: [w3c/uievents] Needs alternative WheelEvent.deltaMode, WheelEvent.delat(X|Y|Z) (#181)

To summarize the proposal:

Because many web developers don't respect the `deltaMode` setting and simply assume that `delta*` always returns pixel values, we're proposing changing `delta*` to always return pixel values.

* Change definition of `deltaMode` to always return DOM_DELTA_PIXEL
* Change definition of `delta(X|Y|Z)` to always return pixels values
   * This will be a change for Firefox, but not for Chrome, Edge and Safari.
* Add `rawDelta(X|Y|Z)` and `rawDeltaMode` so that sites that want the non-pixel deltas, can explicitly request it.
   * The simplest implementation would be to duplicate the previous definition for `deltaX` and `deltaMode`. Although browsers may choose to return LINE or PAGE since PIXEL is already covered.

This change won't affect sites that properly check the `deltaMode` attribute, but it would break any site that assumes Firefox == DOM_PIXEL_LINE without actually checking `deltaMode`.

Sites that currently take advantage of Firefox's non-pixel deltas will no longer do so until they switch to use the new attributes on the event.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/181#issuecomment-391815998

Received on Thursday, 24 May 2018 18:34:07 UTC