Browse Source
Merge pull request #6258 from Takoooooo/fix-dismiss-layer-hittest-osx
Fix light dismiss overlay intercepting titlebar hit tests for OSX.
pull/6270/head
Dan Walmsley
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/Avalonia.Native/WindowImpl.cs
|
|
@ -114,7 +114,7 @@ namespace Avalonia.Native |
|
|
{ |
|
|
{ |
|
|
var visual = (_inputRoot as Window).Renderer.HitTestFirst(e.Position, _inputRoot as Window, x => |
|
|
var visual = (_inputRoot as Window).Renderer.HitTestFirst(e.Position, _inputRoot as Window, x => |
|
|
{ |
|
|
{ |
|
|
if (x is IInputElement ie && !ie.IsHitTestVisible) |
|
|
if (x is IInputElement ie && (!ie.IsHitTestVisible || !ie.IsVisible)) |
|
|
{ |
|
|
{ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|