Skip to content

Commit

Permalink
Cache hover element again
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Nov 10, 2024
1 parent d962d60 commit 2088362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc-core/src/arc/scene/Scene.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 2088362

Please # to comment.