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;
|
sLastRecognitionTime = 0;
|
||||||
mListener.onStartBatchInput();
|
mListener.onStartBatchInput();
|
||||||
}
|
}
|
||||||
|
mTimerProxy.cancelLongPressTimer();
|
||||||
final boolean isOldestTracker = sPointerTrackerQueue.getOldestElement() == this;
|
final boolean isOldestTracker = sPointerTrackerQueue.getOldestElement() == this;
|
||||||
mDrawingProxy.showGesturePreviewTrail(this, isOldestTracker);
|
mDrawingProxy.showGesturePreviewTrail(this, isOldestTracker);
|
||||||
}
|
}
|
||||||
|
@ -836,7 +837,6 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
// Register move event on gesture tracker.
|
// Register move event on gesture tracker.
|
||||||
onGestureMoveEvent(x, y, eventTime, true /* isMajorEvent */, key);
|
onGestureMoveEvent(x, y, eventTime, true /* isMajorEvent */, key);
|
||||||
if (sInGesture) {
|
if (sInGesture) {
|
||||||
mTimerProxy.cancelLongPressTimer();
|
|
||||||
mCurrentKey = null;
|
mCurrentKey = null;
|
||||||
setReleasedKeyGraphics(oldKey);
|
setReleasedKeyGraphics(oldKey);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue