Skip to content

Commit

Permalink
Merge pull request #6258 from Takoooooo/fix-dismiss-layer-hittest-osx
Browse files Browse the repository at this point in the history
Fix light dismiss overlay intercepting titlebar hit tests for OSX.
  • Loading branch information
Dan Walmsley committed Jul 15, 2021
2 parents b57e984 + ea26926 commit 71feb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Native/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected override bool ChromeHitTest (RawPointerEventArgs e)
{
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;
}
Expand Down

0 comments on commit 71feb36

Please sign in to comment.