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

Commit 9e15c536 authored by Danny Baumann's avatar Danny Baumann Committed by Abhisek Devkota
Browse files

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

They're likely to be caused by palm touches.

RM-208
Change-Id: Ic1e0b86c5bf5d4c22f888f0bb77342584e45763e
(cherry picked from commit 8c1cd30c)
parent 7593ae3e
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()) {