diff --git a/app/src/main/kotlin/com/litekite/ime/widget/KeyboardView.kt b/app/src/main/kotlin/com/litekite/ime/widget/KeyboardView.kt index c6ca838..5c8e9f7 100644 --- a/app/src/main/kotlin/com/litekite/ime/widget/KeyboardView.kt +++ b/app/src/main/kotlin/com/litekite/ime/widget/KeyboardView.kt @@ -550,7 +550,6 @@ class KeyboardView @JvmOverloads constructor( } } MotionEvent.ACTION_MOVE -> { - removeCallbacks() if (currentKeyIndex == Keyboard.NOT_A_KEY) { return true } @@ -562,6 +561,7 @@ class KeyboardView @JvmOverloads constructor( ViewConfiguration.getLongPressTimeout().toLong() ) } else { + removeCallbacks() isPressed = false currentKey.onReleased(false) keyPreviewPopupWindow?.hidePreview()