Chromium Code Reviews
DescriptionFix event targeting for overlay scrollbar thumbs (in native UI).
Views with layers are targeted based on their layer's transform rather
than their local coordinates. See View::GetTransform(). Hence the thumb
did not receive events until the translated area was hovered. To resolve
this, make the thumb 11 + 4 = 15 dp wide all the time, and just slide
back and forth so that 4dp is off the left or 4dp is off the right of
the 11dp track, making sure the thumb always covers the whole track
(it won't extend beyond visually or in terms of event handling because
of the track's layer clipping).
BUG=666798
Committed: https://crrev.com/03722d39ae28885ebd6de91429325776c77da2a7
Cr-Commit-Position: refs/heads/master@{#433664}
Patch Set 1 #
Total comments: 1
Patch Set 2 : fix 2 bugs #
Total comments: 8
Patch Set 3 : remove circular construction dependency #
Messages
Total messages: 24 (12 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||