Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/haxeui/haxeui-heaps
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Aug 10, 2024
2 parents 4e0301a + f2ea589 commit 42797cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haxe/ui/backend/ComponentImpl.hx
Original file line number Diff line number Diff line change
Expand Up @@ -896,14 +896,15 @@ 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) {
var mouseEvent = new haxe.ui.events.MouseEvent(haxe.ui.events.MouseEvent.MOUSE_OUT);
mouseEvent.screenX = x;
mouseEvent.screenY = y;
fn(mouseEvent);
event.canceled = mouseEvent.canceled;
}
return;
}
Expand Down

0 comments on commit 42797cb

Please sign in to comment.