am 8ab8fbbf: Merge "Don\'t let ScrollView intercept touch events if it can\'t scroll." into jb-mr1-dev
* commit '8ab8fbbf46d8779f53301e7f706f97608eed7117': Don't let ScrollView intercept touch events if it can't scroll.
This commit is contained in:
@@ -460,6 +460,13 @@ public class ScrollView extends FrameLayout {
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Don't try to intercept touch if we can't scroll anyway.
|
||||
*/
|
||||
if (getScrollY() == 0 && !canScrollVertically(1)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (action & MotionEvent.ACTION_MASK) {
|
||||
case MotionEvent.ACTION_MOVE: {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user