Skip to content

Commit

Permalink
fix: Fix Shapes hit test (was requiring a Background ... while this p…
Browse files Browse the repository at this point in the history
…roperty is not event on the WinUI API)
  • Loading branch information
Dr.Rx committed Mar 16, 2020
1 parent 25a5243 commit f625c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Shapes/Shape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ protected virtual void OnStrokeDashArrayUpdated(DoubleCollection newValue)
protected virtual void RefreshShape(bool forceRefresh = false) { }

internal override bool IsViewHit()
=> Fill != null || base.IsViewHit();
=> Fill != null; // Do not invoke base.IsViewHit(): We don't have to have de FramewokrElement.Background to be hit testable!
}
}

0 comments on commit f625c31

Please sign in to comment.