Fix excessive canceling of long-press timer while gesturing

Change-Id: I2a68c777e66a6b83d16885780a92a21e91bd3f9e
main
Tadashi G. Takaoka 2012-10-11 17:51:45 +09:00
parent c1f2c3a646
commit ad181915f7
1 changed files with 1 additions and 1 deletions

View File

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