Fix excessive canceling of long-press timer while gesturing
Change-Id: I2a68c777e66a6b83d16885780a92a21e91bd3f9emain
parent
c1f2c3a646
commit
ad181915f7
|
@ -637,6 +637,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
|||
sLastRecognitionTime = 0;
|
||||
mListener.onStartBatchInput();
|
||||
}
|
||||
mTimerProxy.cancelLongPressTimer();
|
||||
final boolean isOldestTracker = sPointerTrackerQueue.getOldestElement() == this;
|
||||
mDrawingProxy.showGesturePreviewTrail(this, isOldestTracker);
|
||||
}
|
||||
|
@ -836,7 +837,6 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
|||
// Register move event on gesture tracker.
|
||||
onGestureMoveEvent(x, y, eventTime, true /* isMajorEvent */, key);
|
||||
if (sInGesture) {
|
||||
mTimerProxy.cancelLongPressTimer();
|
||||
mCurrentKey = null;
|
||||
setReleasedKeyGraphics(oldKey);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue