-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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 physics passive hovering with MOUSE_FILTER_IGNORE
#79443
Conversation
8ffda10
to
ac99e85
Compare
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.
When parent_ignore_mouse
is true, the for
loop can be skipped.
I'm not entirely sure, if that is correct, because the loop covers also non-mouse events, like |
ac99e85
to
3e2c729
Compare
My point was about putting the loop inside an |
Now I understand you. I was talking about a different loop, than you were. |
When the parent `SubViewportContainer` ignores mouse with `MOUSE_FILTER_IGNORE` and also when the mouse is over a `Control`-node, then the `SubViewport` shouldn't create mouse-move-events for passive hovering.
3e2c729
to
b408b05
Compare
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.
Isn't the wording of the various filter modes inaccurate as they say things like "the control will not receive mouse button input [...]"? I mean, it's not only about buttons but also movement, isn't it?
Thanks! |
When the parent
SubViewportContainer
ignores mouse, then theSubViewport
shouldn't create mouse-move-events for passive hovering.resolve #79441
follow-up to #78017
Updated 2023-07-18: Fix also passive hovering during Drag and Drop as mentioned in #75120 (comment)