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

Commit f3d16dbc authored by Danny Baumann's avatar Danny Baumann Committed by Michael Bestas
Browse files

Don't interrupt active gesture input by modifier key presses.

They're likely to be caused by palm touches.

Change-Id: Ic1e0b86c5bf5d4c22f888f0bb77342584e45763e
parent 53b75043
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -636,10 +636,15 @@ public final class PointerTracker implements PointerTrackerQueue.Element,
        final Key key = getKeyOn(x, y);
        mBogusMoveEventDetector.onActualDownEvent(x, y);
        if (key != null && key.isModifier()) {
            // Before processing a down event of modifier key, all pointers already being
            // tracked should be released.
            if (sInGesture) {
                // Make sure not to interrupt an active gesture
                return;
            } else {
                // Before processing a down event of modifier key, all pointers
                // already being tracked should be released.
                sPointerTrackerQueue.releaseAllPointers(eventTime);
            }
        }
        sPointerTrackerQueue.add(this);
        onDownEventInternal(x, y, eventTime);
        if (!sGestureEnabler.shouldHandleGesture()) {