fix: accounts for item offsets, i.e. those not at (0, 0)

This commit is contained in:
Duncan Brown committed 2022-08-23 18:48:16 -04:00
1 parent 689062989b
commit 308d72d5aa
1 file changed
+3 -3
@@ -346,7 +346,7 @@ func _on_mouse_left_clicked_item(item: ESCItem, event: InputEvent) -> void:
)
# Treat this as a background click now
_on_left_click_on_bg(item.global_position)
_on_left_click_on_bg(event.position)
return
@@ -380,7 +380,7 @@ func _on_mouse_left_double_clicked_item(
)
# Treat this as a background click now
_on_double_left_click_on_bg(item.global_position)
_on_double_left_click_on_bg(event.position)
return
@@ -410,7 +410,7 @@ func _on_mouse_right_clicked_item(item: ESCItem, event: InputEvent) -> void:
)
# Treat this as a background click now
_on_right_click_on_bg(item.global_position)
_on_right_click_on_bg(event.position)
return