|
|
@ -76,8 +76,8 @@ namespace Avalonia.Diagnostics.Views |
|
|
if (e.Modifiers == modifiers) |
|
|
if (e.Modifiers == modifiers) |
|
|
{ |
|
|
{ |
|
|
var point = (Root as IInputRoot)?.MouseDevice?.GetPosition(Root) ?? default; |
|
|
var point = (Root as IInputRoot)?.MouseDevice?.GetPosition(Root) ?? default; |
|
|
var control = Root.GetVisualsAt(point, x => (!(x is AdornerLayer) && x.IsVisible)) |
|
|
|
|
|
.FirstOrDefault(); |
|
|
var control = Root.Renderer.HitTestFirst(point, Root, x => !(x is IInputElement ie && !ie.IsHitTestVisible)); |
|
|
|
|
|
|
|
|
if (control != null) |
|
|
if (control != null) |
|
|
{ |
|
|
{ |
|
|
|