Browse Source

sync custom hittesting also to overlaylayer

pull/3357/head
Andrey Kunchev 7 years ago
parent
commit
3439a371d9
  1. 7
      src/Avalonia.Controls/Primitives/OverlayLayer.cs

7
src/Avalonia.Controls/Primitives/OverlayLayer.cs

@ -21,11 +21,8 @@ namespace Avalonia.Controls.Primitives
return null; return null;
} }
public bool HitTest(Point point) public bool HitTest(Point point) => Children.HitTestCustom(point);
{
return Children.Any(ctrl => ctrl.TransformedBounds?.Contains(point) == true);
}
protected override Size ArrangeOverride(Size finalSize) protected override Size ArrangeOverride(Size finalSize)
{ {

Loading…
Cancel
Save