Skip to content

Commit

Permalink
Make sure that GetVisualAt without filter will use fast hit test path.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarchingCube committed Dec 7, 2019
1 parent 9e812f2 commit 55bdfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Visuals/VisualTree/VisualExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public static IVisual GetVisualAt(this IVisual visual, Point p)
{
Contract.Requires<ArgumentNullException>(visual != null);

return visual.GetVisualsAt(p).FirstOrDefault();
return visual.GetVisualAt(p, x => x.IsVisible);
}

/// <summary>
Expand Down

0 comments on commit 55bdfcd

Please sign in to comment.