Ver Fonte

Fix light dismiss overlay intercepting titlebar hit tests.

Dariusz Komosinski há 4 anos atrás
pai
commit
4b2852f0e1

+ 1 - 1
src/Windows/Avalonia.Win32/WindowImpl.CustomCaptionProc.cs

@@ -117,7 +117,7 @@ namespace Avalonia.Win32
                             {
                                 var visual = window.Renderer.HitTestFirst(position, _owner as Window, x =>
                                 {
-                                    if (x is IInputElement ie && !ie.IsHitTestVisible)
+                                    if (x is IInputElement ie && (!ie.IsHitTestVisible || !ie.IsVisible))
                                     {
                                         return false;
                                     }