diff --git a/haxe/ui/backend/ComponentImpl.hx b/haxe/ui/backend/ComponentImpl.hx index 6d8f3a9..622476d 100644 --- a/haxe/ui/backend/ComponentImpl.hx +++ b/haxe/ui/backend/ComponentImpl.hx @@ -896,7 +896,7 @@ class ComponentImpl extends ComponentBase { var i = inBounds(x, y); if (i == true) { - if (hasComponentOver(cast this, x, y) == true) { + if (_mouseOverFlag && hasComponentOver(cast this, x, y) == true) { _mouseOverFlag = false; var fn:UIEvent->Void = _eventMap.get(haxe.ui.events.MouseEvent.MOUSE_OUT); if (fn != null) { @@ -904,6 +904,7 @@ class ComponentImpl extends ComponentBase { mouseEvent.screenX = x; mouseEvent.screenY = y; fn(mouseEvent); + event.canceled = mouseEvent.canceled; } return; }