diff --git a/haxe/ui/backend/ComponentBase.hx b/haxe/ui/backend/ComponentBase.hx index abc3b4a33..a0de8659d 100644 --- a/haxe/ui/backend/ComponentBase.hx +++ b/haxe/ui/backend/ComponentBase.hx @@ -592,6 +592,9 @@ class ComponentBase extends ComponentSurface implements IClonable _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);