DescriptionRemove special wheel handling path from ScrollableArea
ScrollableArea maintained its own special path for wheel handlers. This was
duplicating logic with other scrolls that used ScrollableArea::userScroll and
confusing (why isn't there a handleTouch? handleKey?).
I've removed ScrollableArea::handleWheel and its overrides and moved all the
WheelEvelt -> Scroll Delta logic into EventHandler from where it simply calls
ScrollableArea::userScroll like all other scroll paths.
I also made a slight change to the page step size of ScrollableArea: it's now
87.5% of the visible area *including* scrollbars. This was necessary since on
the root frame, the visible area excluding scrollbars is a somewhat arbitrary
calculation when pinch-zoomed. While it would be possible to come up with some
scheme or make the step size different for root and non-root frames this would
unnecessarily complicate the code for little gain so I just based it off the
size of the frame rect.
BUG=443724
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201145
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 12
Patch Set 4 : Added TODO for OSX #ifdef #
Total comments: 2
Patch Set 5 : Fixed up test expectations - removed OSX #ifdef #
Total comments: 2
Patch Set 6 : Removed TODO #Messages
Total messages: 20 (7 generated)
|