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

Commit 0d3da123 authored by Mindy Pereira's avatar Mindy Pereira
Browse files

Fix case when user touches the very edge of a view

This now counts touches at the exact top edge of the view as valid

Change-Id: I9e81a7001632c38d567dde40954e079e7145fa36
parent 1f809c77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -531,7 +531,7 @@ public abstract class AutoScrollHelper implements View.OnTouchListener {
            case EDGE_TYPE_INSIDE:
            case EDGE_TYPE_INSIDE_EXTEND:
                if (current < leading) {
                    if (current > 0) {
                    if (current >= 0) {
                        // Movement up to the edge is scaled.
                        return 1f - current / leading;
                    } else if (mActive && (mEdgeType == EDGE_TYPE_INSIDE_EXTEND)) {