We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9fa7b2 + 0278c2f commit 8ab8fbbCopy full SHA for 8ab8fbb
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