Skip to content
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 nodes receiving mouse events in black bars of Window #80334

Merged

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Aug 6, 2023

Previously for InputEvents there was no distinction between Window-area and Viewport-area.
This was problematic in cases where stretching was used and the Window contained black bars at the sides of the Viewport as in the linked issue. This PR separates the area of Window and Viewport regarding InputEvents.

resolve #80011

Updated: 2023-08-09: Fix merge conflict

@Sauermann Sauermann added this to the 4.2 milestone Aug 6, 2023
@Sauermann Sauermann requested review from a team as code owners August 6, 2023 13:27
Previously for InputEvents there was no distinction between
Window-area and Viewport-area.
This was problematic in cases where stretching was used and the Window
contained black bars at the sides of the Viewport.
This PR separates the area of Window and Viewport regarding InputEvents.
@Sauermann Sauermann force-pushed the fix-window-out-of-viewport-events branch from 587d938 to 59c13fe Compare August 9, 2023 10:37
@akien-mga akien-mga requested a review from bruvzg August 9, 2023 11:18
@akien-mga akien-mga merged commit a7dc4c2 into godotengine:master Aug 16, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Area2D receives mouse input events from outside root viewport
3 participants