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

Commit b4eb89e4 authored by Ameer Armaly's avatar Ameer Armaly
Browse files

MultiFingerMultiTap: reset the expiration clock when fingers go up.

We were resetting the expiration clock every time a finger went down, but were not resetting it when fingers went up. As a result the user had a super narrow window to get all the fingers up before the gesture canceled.
Bug: 156880174
Test: atest GestureManifoldTest
Change-Id: I81dd9cd67729cfae38952d44295c3340c5426028

Change-Id: I1b6323ac413bcbd46fd9292fbb4cf7ebdf2b6246
parent 962f6766
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -197,6 +197,7 @@ class MultiFingerMultiTap extends GestureMatcher {
        if (getState() == STATE_GESTURE_STARTED || getState() == STATE_CLEAR) {
            // Needs more fingers lifted within the tap timeout
            // after reaching the target number of fingers are down.
            cancelAfterTapTimeout(event, rawEvent, policyFlags);
        } else {
            cancelGesture(event, rawEvent, policyFlags);
        }