From 169a5b501a98b5753051f2aeec3a32d3ff435c77 Mon Sep 17 00:00:00 2001 From: Duncan Brown Date: Wed, 7 Sep 2022 17:29:08 -0400 Subject: [PATCH] fix: focuses the 'topmost' element from hover_stack inline with what hotspot_focused already is --- addons/escoria-core/game/esc_inputs_manager.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/escoria-core/game/esc_inputs_manager.gd b/addons/escoria-core/game/esc_inputs_manager.gd index 578487df..e36989d7 100644 --- a/addons/escoria-core/game/esc_inputs_manager.gd +++ b/addons/escoria-core/game/esc_inputs_manager.gd @@ -317,7 +317,7 @@ func _on_mouse_entered_item(item: ESCItem) -> void: hover_stack.push_back(item) hotspot_focused = hover_stack.back().global_id - escoria.main.current_scene.game.element_focused(item.global_id) + escoria.main.current_scene.game.element_focused(hotspot_focused) # The mouse exited an Escoria item