Contact emails
Spec
http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEvent
Summary
I would like to add support for the DOM Level 3 WheelEvent.
Currently, Blink implements a non-standard 'mousewheel' event with a very similar API so the code is already there. It just needs to be exposed in the standard way (more details on the crbug).
Motivation
Having a standardized way of handling mouse wheel events.
Compatibility Risk
Risk is low as IE10 and Firefox both already support the standard Wheel Event.
I am planning to keep support for the non-standard 'mousewheel' event to order to maintain backward compatibility.
Ongoing technical constraints
No.
Will this feature be supported on all five Blink platforms (Windows, Mac, Linux, Chrome OS and Android)?
Yes.
OWP launch tracking bug?
https://code.google.com/p/chromium/issues/detail?id=273395
Row on feature dashboard?
No. This seems like a small adaptation of the existing mousewheel code.
Requesting approval to ship?
Yes.Seems good to me.
How do they interact? Which one comes first. Does preventDefault
prevent the second event?
SGTM - would be great to get WheelEvent up to speed w/ the current spec.Note that aside from naming differences, the spec specifies the deltas as floats, while Blink currently has them as longs (see crbug.com/152426).
Excellent, I've been thinking we should add support for wheel, thanks!Other than the obvious benefit of being a standard, the other thing I like over mousewheel is the deltaZ property. The spec has this note about it:"The user's environment might be configured to associate vertical scrolling with rotation along the y-axis, horizontal scrolling with rotation along the x-axis, and zooming with rotation along the z-axis."
On Fri, Aug 16, 2013 at 7:35 AM, Rick Byers <rby...@chromium.org> wrote:
Excellent, I've been thinking we should add support for wheel, thanks!Other than the obvious benefit of being a standard, the other thing I like over mousewheel is the deltaZ property. The spec has this note about it:"The user's environment might be configured to associate vertical scrolling with rotation along the y-axis, horizontal scrolling with rotation along the x-axis, and zooming with rotation along the z-axis."By environment, is this supposed to mean the UA can decide that this is how these vertical / horizontal / zoom scrolls should be handled, or the web page can?