DescriptionDo not scale ScrollEvent by device scale factor
We used to scale scroll events in event_transformation_handler
because we want to mimic the behaviour of the CrOS X patch which
scales pointer motions w.r.t. the screen resolution. See the
patch here https://chromium-review.googlesource.com/#/c/45522/.
The idea is actually wrong because Aura Views use DIPs instead of
pixels as what X server does. The scaling would make scroll events
to have 2x higher speed on Pixel as compared to normal resolution
devices. This CL fixes the problem so that scroll events will
have identical sensitivity on all devices regardless of the screen
resolution.
Note that the sensitivity would still be slightly different due to
the sllightly different DIP resolution on each device.
Contributed by sheckylin@chromium.org
BUG=288211
TEST=Tested on Pixel and non-Pixel devices. Make sure:
1. Scrolling on webpages with touchpads goes through roughly the same
amount of page if the scrolling distance and speed is the same.
2. 2f back/forward gesture should require roughly equal distance
of scrolling on the touchpad at the same speed to trigger.
3. 3f tab-switching should go through roughly the same ratio of tab
counts for the equal distance of scrolling on the touchpad at the same
speed.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224341
Patch Set 1 #
Total comments: 5
Patch Set 2 : Trimmed comments and fix the code #
Total comments: 2
Patch Set 3 : Update the comment #Messages
Total messages: 10 (0 generated)
|