Skip to content
Snippets Groups Projects
Commit f152f653 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Fix incorrect hitbox calculation

parent f608d67f
No related branches found
No related tags found
Loading
......@@ -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
),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment