Skip to content

Commit

Permalink
add :hover if in mouse bounds after disable=false
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Dec 3, 2024
1 parent 16cc565 commit 73d6a76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haxe/ui/backend/ComponentBase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@ class ComponentBase extends ComponentSurface implements IClonable<ComponentBase>
_interactivityDisabled = false;
if (updateStyle == true) {
cast(this, Component).removeClass(":disabled");
if (this.hitTest(Screen.instance.currentMouseX, Screen.instance.currentMouseY)) {
cast(this, Component).addClass(":hover");
}
}
handleDisabled(false);
disableInteractiveEvents(false);
Expand Down

0 comments on commit 73d6a76

Please sign in to comment.