There was an error while loading. Please reload this page.
1 parent 1598d0d commit d67d3c4Copy full SHA for d67d3c4
1 file changed
src/main/kotlin/com/mineinabyss/guiy/layout/GuiyModifierNode.kt
@@ -98,12 +98,11 @@ internal class GuiyModifierNode(
98
}
99
100
fun processClickEvent(event: ClickEvent): Boolean {
101
- if (!isInBounds(event)) return false
102
// start from last child since user is shown last inventory added to tree
103
if (next == null) return root.children.asReversed().any { it.layoutDelegate.processClickEvent(event) }
104
val node = node
105
next!!.processClickEvent(event)
106
- if(node is InteractionModifierNode && !event.isConsumed) {
+ if(node is InteractionModifierNode && !event.isConsumed && isInBounds(event)) {
107
event.position = event.globalPosition - IntOffset(x, y)
108
node.onEvent(event)
109
0 commit comments