fix: clicking outside inventory panel closes overlay

This commit is contained in:
2026-04-26 21:54:11 -07:00
parent 79f152f161
commit 652d1e5fdc

View File

@@ -180,10 +180,12 @@ func _gui_input(event: InputEvent) -> void:
if not _is_visible:
return
if event is InputEventMouseButton:
if event is InputEventMouseButton:
if event.button_index == 1 and event.pressed:
if not _is_dragging:
pass
hide_overlay()
close_requested.emit()
return
elif event.button_index == 1 and not event.pressed:
if _is_dragging:
if _hovered_slot == null: