DescriptionOverlay scrollbars expand only when mouse is near thumb
Overlay scrollbars expand when mouse is near the whole scrollbar today.
In this patch, we change it to expand only when mouse is near thumb.
We pass mouse position to SingleScrollbarAnimationControllerThinning
instead of calculating the distance from mouse position to scrollbar in
LayerTreeHostImpl.
In SingleScrollbarAnimationControllerThinning::DidMouseMove we
calculate:
1. distance from mouse to scrollbar: determind should scrollbar keep
appear, fade out or hover fade in.
2. distance from mouse to scrollbar thumb: determind should thick/thin
scrollbar
BUG=713218
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2841943002
Cr-Commit-Position: refs/heads/master@{#468428}
Committed: https://chromium.googlesource.com/chromium/src/+/982642b47574426b124f75c2e0b74f83c8705161
Patch Set 1 #
Total comments: 6
Patch Set 2 : change some interface #Patch Set 3 : add tests #
Total comments: 3
Patch Set 4 : bokan comments addressed #Patch Set 5 : pass point to SingleScrollbarController #
Total comments: 7
Patch Set 6 : bokan comments#8 addressed #
Total comments: 1
Patch Set 7 : weiliangc comment addressed #Messages
Total messages: 21 (10 generated)
|