Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0278c2fc authored by Adam Powell's avatar Adam Powell
Browse files

Don't let ScrollView intercept touch events if it can't scroll.

Bug 6872104

Change-Id: Iee643e052acc37485a8ec45b7af8be0783fb1a95
parent 9dcfff20
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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: {
                /*