DescriptionWheelEvent's deltaX/deltaY sign is wrong
According to the specification, if a user agent scrolls as the default action
of the wheel event then the sign of the delta should be given by a right-hand
coordinate system where positive X, Y, and Z axes are directed towards the
right-most edge, bottom-most edge, and farthest depth (away from the user) of
the document, respectively:
http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
This signs for deltaX/deltaY are the inversed compared to the legacy
wheelDeltaX/wheelDeltaY. r156404 added support for DOM3 WheelEvent but used
the same sign for deltaX/deltaY and wheelDeltaX/wheelDeltaY.
Firefox 23 and IE10 uses the right sign according to the specification.
BUG=227454
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156478
Patch Set 1 #Patch Set 2 : Avoid negative zero value #
Total comments: 5
Patch Set 3 : Add comment #Patch Set 4 : Fix comment #
Messages
Total messages: 9 (0 generated)
|