mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix incorrect hitbox calculation
This commit is contained in:
parent
f608d67fc0
commit
f152f6537c
@ -524,7 +524,7 @@ data class LayoutEngine(
|
|||||||
hitBox = Rect(
|
hitBox = Rect(
|
||||||
x - (leftGap?.widthPx?.roundToInt() ?: 0),
|
x - (leftGap?.widthPx?.roundToInt() ?: 0),
|
||||||
y,
|
y,
|
||||||
x + width + (leftGap?.widthPx?.roundToInt() ?: 0) + (rightGap?.widthPx?.roundToInt() ?: 0),
|
x + width + (rightGap?.widthPx?.roundToInt() ?: 0),
|
||||||
y + height
|
y + height
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user