mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '61155c708765068c7e3969deb9d07000a558b1ca': Don't cancel long press timer too early
This commit is contained in:
commit
c66a2d1da6
@ -836,13 +836,11 @@ 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;
|
||||
}
|
||||
if (mGestureStrokeWithPreviewPoints.hasDetectedFastMove()) {
|
||||
mTimerProxy.cancelLongPressTimer();
|
||||
}
|
||||
}
|
||||
|
||||
if (key != null) {
|
||||
|
@ -243,7 +243,7 @@ public class GestureStroke {
|
||||
mLastMajorEventY = y;
|
||||
}
|
||||
|
||||
public final boolean hasDetectedFastMove() {
|
||||
private final boolean hasDetectedFastMove() {
|
||||
return mDetectFastMoveTime > 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user