From 208836216e623ac6f4be860915faf98ab3de5f3b Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 10 Nov 2024 09:02:14 -0500 Subject: [PATCH] Cache hover element again --- arc-core/src/arc/scene/Scene.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc-core/src/arc/scene/Scene.java b/arc-core/src/arc/scene/Scene.java index ba64c04b..a8b58dff 100644 --- a/arc-core/src/arc/scene/Scene.java +++ b/arc-core/src/arc/scene/Scene.java @@ -95,7 +95,7 @@ public void registerStyles(Object obj){ public @Nullable Element getHoverElement(){ //TODO: this is slow, use mouseOverElement instead? - return hit(Core.input.mouseX(), Core.input.mouseY(), true); + return mouseOverElement; } public boolean hasField(){