Fix checking of sliding off from key
This is follow up change of Id6f69e82. Change-Id: I15127929b8eeb511a652c7ae6a14ababbb49ee24main
parent
dbc44989a5
commit
ef71c4aa4c
|
@ -308,15 +308,12 @@ public class PointerTracker {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!isMinorMoveBounce(x, y, keyIndex)) {
|
if (oldKey != null && !isMinorMoveBounce(x, y, keyIndex)) {
|
||||||
resetMultiTap();
|
|
||||||
keyState.onMoveToNewKey(keyIndex, x ,y);
|
|
||||||
mHandler.cancelLongPressTimers();
|
|
||||||
} else if (oldKey != null) {
|
|
||||||
// The pointer has been slid out from the previous key, we must call onRelease() to
|
// The pointer has been slid out from the previous key, we must call onRelease() to
|
||||||
// notify that the previous key has been released.
|
// notify that the previous key has been released.
|
||||||
callListenerOnRelease(oldKey.mCodes[0]);
|
callListenerOnRelease(oldKey.mCodes[0]);
|
||||||
if (mIsAllowedSlidingKeyInput) {
|
if (mIsAllowedSlidingKeyInput) {
|
||||||
|
resetMultiTap();
|
||||||
keyState.onMoveToNewKey(keyIndex, x ,y);
|
keyState.onMoveToNewKey(keyIndex, x ,y);
|
||||||
mHandler.cancelLongPressTimers();
|
mHandler.cancelLongPressTimers();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue