Estragonia icon indicating copy to clipboard operation
Estragonia copied to clipboard

Allow click through on transparent areas

Open dotlogix opened this issue 7 months ago • 0 comments

Hey there I just found out, that there is an issue if you overlay an Avalonia control with transparency on top of other Godot nodes.

I think it would be useful to override _HasPoint on the AvaloniaControl and execute a hit test against Avalonia. This way you can stack multiple layers of Avalonia/Godot controls on top of each other.

It is actually very simple to do using this method:

public override bool _HasPoint(Vector2 point)
{
    return Control?.InputHitTest(point.ToAvaloniaPoint()) is not null;
}

dotlogix avatar Jul 19 '24 20:07 dotlogix