Chromium Code Reviews
DescriptionMacViews: Reveal scrollbars when resting on the trackpad.
ScrollViews on Mac should reveal overlay scrollers when just resting on
the trackpad, without movement. Currently they only appear once
scrolling has begun in a particular direction.
To fix, allow scrollbars to observe ui::ScrollEvents on their hosting
ScrollView, and behave appropriately.
Update the overlay scroll bars in an override of ScrollBar::Update(..)
rather than BaseScrollBar::ScrollToPosition(..). This is because changes
to scroll positions coming from a cc::InputHandler go through
ScrollView::OnLayerScrolled(), and not ScrollView::ScrollToOffset, so
they are not always seen by ScrollToPosition().
Update ui::test::EventGenerator to support these Rest/CancelRest events,
and map them to native NSEvents in event_generator_delegate_mac.mm. Also
map EventGenerator::ScrollSequence in a way that makes sense for the
event stream that AppKit provides.
BUG=664894
Committed: https://crrev.com/83cbf3e99c4710133abde8c5a26e8c1ff4f0d721
Cr-Commit-Position: refs/heads/master@{#432417}
Patch Set 1 #Patch Set 2 : It works \o/ It has tests \o/ #Patch Set 3 : fix compile #Patch Set 4 : Lint #Patch Set 5 : fix compile #
Total comments: 8
Patch Set 6 : respond to comments #
Total comments: 3
Patch Set 7 : GenerateTrackpadRest #Patch Set 8 : rebase for r432358 #
Messages
Total messages: 51 (41 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||