Fix incorrect hitbox calculation

This commit is contained in:
Aleksandras Kostarevas 2024-09-23 15:53:30 +03:00
parent f608d67fc0
commit f152f6537c

View File

@ -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
), ),
) )