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
This commit is contained in:
Ameer Armaly
2020-05-20 13:54:23 -07:00
parent 962f676619
commit b4eb89e468

View File

@@ -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);
}