OSDN Git Service

Fix invisible scroll thumb blocks clicks.
authorshepshapard <shepshapard@google.com>
Mon, 25 Jun 2018 20:42:11 +0000 (13:42 -0700)
committershepshapard <shepshapard@google.com>
Fri, 29 Jun 2018 17:57:18 +0000 (10:57 -0700)
commit5229200dd36f803ed11c8d10d776c5c0cdeb0d14
treeccd06dc48e25ed6df54e234a7c9560a4f873323d
parentaf5753836912a1c76ac35071b8343a6d00782d9e
Fix invisible scroll thumb blocks clicks.

The current issue is that Views that have either the horizontal or
vertical scroll bars enabled will intercept mouse interactions that
entire the region where the scrolling thumb would be even if the View
cannot actually scroll because it's content isn't larger than it.

This is fixed by only intercepting mouse interactions in the scroll
thumb region if there is something to scroll.

Bug: 110375792
Test: None yet

Change-Id: Ib638b4ac88375f55bc80ba2a66d945a16ecd6d22
core/java/android/view/View.java