Skip to content
Snippets Groups Projects
Commit ad181915 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix excessive canceling of long-press timer while gesturing

Change-Id: I2a68c777e66a6b83d16885780a92a21e91bd3f9e
parent c1f2c3a6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment