Skip to content

Commit

Permalink
Fix _HasPoint for popups and scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJul committed Oct 8, 2024
1 parent a38609f commit 25ab257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JLeb.Estragonia/AvaloniaControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ private void OnMouseExited()
=> _topLevel?.Impl.OnMouseExited(Time.GetTicksMsec());

public override bool _HasPoint(Vector2 point)
=> Control?.InputHitTest(point.ToAvaloniaPoint(), false) is not null;
=> _topLevel?.InputHitTest(point.ToAvaloniaPoint() / _topLevel.RenderScaling, false) is not null;

protected override void Dispose(bool disposing) {
if (disposing && _topLevel is not null) {
Expand Down

0 comments on commit 25ab257

Please sign in to comment.