-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ICustomHitTest #5923
Fix ICustomHitTest #5923
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -311,8 +312,7 @@ private bool FilterAndClip(IVisualNode node, ref Rect? clip) | |||
|
|||
if (!clipped && node.Visual is ICustomHitTest custom) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about ICustomSimpleHitTest ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
What does the pull request do?
ICustomHitTest wasn't being handled correctly when using deferred renderer. Immediate renderer functions as intended.
What is the current behavior?
Deferred renderer passes incorrectly translated points for clipping, and for actual hit testing doesn't test at all.
What is the updated/expected behavior with this PR?
A repro is provided in #5879. Deferred renderer now passes non-translated points and does actual hit testing. On an slightly less related note, upon inspection it's possible to expand the hit window using this interface, so I've removed an old comment which claimed it was not possible. This is intended behavior.
Checklist
Breaking changes
People using deferred renderer will now have non-translated points passed to
HitTest
.Fixed issues
Fixes #5879