Browse Source
Merge pull request #6016 from MarchingCube/fix-dimiss-layer-hittest
Fix light dismiss overlay intercepting titlebar hit tests.
pull/6032/head
Dariusz Komosiński
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
|