Merge "Don't let ScrollView intercept touch events if it can't scroll." into jb-mr1-dev
This commit is contained in:
@@ -460,6 +460,13 @@ public class ScrollView extends FrameLayout {
|
|||||||
return true;
|
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) {
|
switch (action & MotionEvent.ACTION_MASK) {
|
||||||
case MotionEvent.ACTION_MOVE: {
|
case MotionEvent.ACTION_MOVE: {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user