diff options
| author | Keisuke Kuroyanagi <ksk@google.com> | 2016-01-21 14:50:38 +0900 |
|---|---|---|
| committer | Keisuke Kuroyanagi <ksk@google.com> | 2016-01-21 14:50:38 +0900 |
| commit | d85bc5074dc1211fdb1c6799d9321af54ac5a32f (patch) | |
| tree | 3966af7121295840c2be68b327d3b35483d9fa4b /core/java/android/widget/ScrollView.java | |
| parent | 1ee3e370f9f92721c3ea06344a4e2e80a1bf1bed (diff) | |
Make scroll bar mouse draggable.
This is for Views that have special mouse dragging handling. e.g.
TextView invokes text selection on mouse dragging, so it cannot be
scrolled by mouse dragging.
This provides such Views or ViewGroups a last resort to scroll as we
don't assume that all devices have touch panel, touch pad, or mouse
wheel.
Bug: 20016455
Change-Id: I68a13258a50b5e4ea681b2576da6000a0bb3fa65
Diffstat (limited to 'core/java/android/widget/ScrollView.java')
| -rw-r--r-- | core/java/android/widget/ScrollView.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/ScrollView.java b/core/java/android/widget/ScrollView.java index 78b931d94fd2..3f7a07bbd31a 100644 --- a/core/java/android/widget/ScrollView.java +++ b/core/java/android/widget/ScrollView.java @@ -489,6 +489,10 @@ public class ScrollView extends FrameLayout { return true; } + if (super.onInterceptTouchEvent(ev)) { + return true; + } + /* * Don't try to intercept touch if we can't scroll anyway. */ |
