RESOLVED FIXED 109611
[chromium] Add acceleration ratios for the deltas to WebMouseWheelEvents
https://bugs.webkit.org/show_bug.cgi?id=109611
Summary [chromium] Add acceleration ratios for the deltas to WebMouseWheelEvents
Sadrul Habib Chowdhury
Reported 2013-02-12 13:59:27 PST
[chromium] Add unaccelerated deltas to WebMouseWheelEvent
Attachments
Patch (2.46 KB, patch)
2013-02-12 14:03 PST, Sadrul Habib Chowdhury
no flags
Patch (2.46 KB, patch)
2013-02-12 14:09 PST, Sadrul Habib Chowdhury
no flags
Patch (2.47 KB, patch)
2013-02-12 19:36 PST, Sadrul Habib Chowdhury
no flags
Sadrul Habib Chowdhury
Comment 1 2013-02-12 14:03:06 PST
Adam Barth
Comment 2 2013-02-12 14:05:51 PST
Comment on attachment 187929 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=187929&action=review > Source/WebKit/chromium/ChangeLog:6 > + Mousewheel events generated by trackpad can have accelrated deltas (e.g. when doing typo: accelrated
WebKit Review Bot
Comment 3 2013-02-12 14:07:28 PST
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Sadrul Habib Chowdhury
Comment 4 2013-02-12 14:09:30 PST
Sadrul Habib Chowdhury
Comment 5 2013-02-12 14:10:04 PST
Comment on attachment 187929 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=187929&action=review >> Source/WebKit/chromium/ChangeLog:6 >> + Mousewheel events generated by trackpad can have accelrated deltas (e.g. when doing > > typo: accelrated Whoops. Fixed.
Adam Barth
Comment 6 2013-02-12 15:13:54 PST
Comment on attachment 187932 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=187932&action=review > Source/WebKit/chromium/public/WebInputEvent.h:371 > + float unacceleratedDeltaX; > + float unacceleratedDeltaY; Should we add some comments explaining the difference between unacceleratedDeltaX and deltaX? Does deltaX/unacceleratedDeltaX always equal deltaY/unacceleratedDeltaY? If so, should we ASSERT that somewhere? Should we just supply the ratio instead?
Sadrul Habib Chowdhury
Comment 7 2013-02-12 19:36:16 PST
Sadrul Habib Chowdhury
Comment 8 2013-02-12 19:37:17 PST
Comment on attachment 187932 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=187932&action=review >> Source/WebKit/chromium/public/WebInputEvent.h:371 >> + float unacceleratedDeltaY; > > Should we add some comments explaining the difference between unacceleratedDeltaX and deltaX? Does deltaX/unacceleratedDeltaX always equal deltaY/unacceleratedDeltaY? If so, should we ASSERT that somewhere? Should we just supply the ratio instead? Using the ratio sounds much better! Thanks! I have changed to use that.
Adam Barth
Comment 9 2013-02-12 19:52:52 PST
Does the ratio apply to the wheel ticks as well?
Sadrul Habib Chowdhury
Comment 10 2013-02-12 20:07:40 PST
(In reply to comment #9) > Does the ratio apply to the wheel ticks as well? Indeed it does. (wheelTicksX/Y are often computed from deltaX/Y)
WebKit Review Bot
Comment 11 2013-02-13 08:26:44 PST
Comment on attachment 187993 [details] Patch Clearing flags on attachment: 187993 Committed r142752: <http://trac.webkit.org/changeset/142752>
WebKit Review Bot
Comment 12 2013-02-13 08:26:48 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.