From f152f6537cec47c556861704b5738822abeff998 Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Mon, 23 Sep 2024 15:53:30 +0300 Subject: [PATCH] Fix incorrect hitbox calculation --- java/src/org/futo/inputmethod/v2keyboard/LayoutEngine.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/futo/inputmethod/v2keyboard/LayoutEngine.kt b/java/src/org/futo/inputmethod/v2keyboard/LayoutEngine.kt index 6411848a2..18de08aea 100644 --- a/java/src/org/futo/inputmethod/v2keyboard/LayoutEngine.kt +++ b/java/src/org/futo/inputmethod/v2keyboard/LayoutEngine.kt @@ -524,7 +524,7 @@ data class LayoutEngine( hitBox = Rect( x - (leftGap?.widthPx?.roundToInt() ?: 0), y, - x + width + (leftGap?.widthPx?.roundToInt() ?: 0) + (rightGap?.widthPx?.roundToInt() ?: 0), + x + width + (rightGap?.widthPx?.roundToInt() ?: 0), y + height ), )