Skip to content

Commit 5d7ebbe

Browse files
committed
fix: crash on clicking blank area when enable auto split keyboard space
1 parent e6b402d commit 5d7ebbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/osfans/trime/ime/keyboard/KeyboardView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ class KeyboardView
409409
the sliding distance on the other coordinate axis.
410410
*/
411411
if (mPossiblePoly) return false
412+
if (mDownKey == NOT_A_KEY) return false
412413
val deltaX = me2.x - me1!!.x // distance X
413414
val deltaY = me2.y - me1.y // distance Y
414415
val absX = abs(deltaX) // absolute value of distance X

0 commit comments

Comments
 (0)