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 Follow Focus in a rotated ScrollContainer #101625

Conversation

Rindbee
Copy link
Contributor

@Rindbee Rindbee commented Jan 16, 2025

Calculate based on the ScrollContainer's space to eliminate possible rotation. The global rect already has applied the rotation, so it should not be used.

Fix #101622.

002.mp4
Rotate_and_rotate.mp4

@Rindbee Rindbee requested a review from a team as a code owner January 16, 2025 05:02
@Rindbee Rindbee force-pushed the fix-follow-focus-in-rotated-ScrollContainer branch from 09e1bc2 to bfebc48 Compare January 16, 2025 05:07
@Rindbee Rindbee changed the title Fix *Follow Focus* in a rotated ScrollContainer Fix **Follow Focus** in a rotated ScrollContainer Jan 16, 2025
@Rindbee Rindbee changed the title Fix **Follow Focus** in a rotated ScrollContainer Fix Follow Focus in a rotated ScrollContainer Jan 16, 2025
@Rindbee Rindbee force-pushed the fix-follow-focus-in-rotated-ScrollContainer branch from bfebc48 to 7896969 Compare January 16, 2025 05:31
Calculate based on the `ScrollContainer`'s space to eliminate possible
rotation. The global rect already has applied the rotation, so it
should not be used.
@Rindbee Rindbee force-pushed the fix-follow-focus-in-rotated-ScrollContainer branch from 7896969 to b75acc3 Compare January 16, 2025 06:59
@Chaosus Chaosus added this to the 4.4 milestone Jan 16, 2025
@Repiteo Repiteo merged commit 69c5b03 into godotengine:master Jan 27, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jan 27, 2025

Thanks!

@Rindbee Rindbee deleted the fix-follow-focus-in-rotated-ScrollContainer branch January 27, 2025 16:02
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.

Follow Focus not working as expected in a rotated ScrollContainer
4 participants