We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dcfff2 commit 0278c2fCopy full SHA for 0278c2f
1 file changed
core/java/android/widget/ScrollView.java
@@ -460,6 +460,13 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
460
return true;
461
}
462
463
+ /*
464
+ * Don't try to intercept touch if we can't scroll anyway.
465
+ */
466
+ if (getScrollY() == 0 && !canScrollVertically(1)) {
467
+ return false;
468
+ }
469
+
470
switch (action & MotionEvent.ACTION_MASK) {
471
case MotionEvent.ACTION_MOVE: {
472
/*
0 commit comments