-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
ScrollContainer scrolling with focus results in weird behavior #63055
Comments
drwhut
added a commit
to drwhut/godot
that referenced
this issue
Jan 23, 2024
The issue was that when the engine was deciding automatically where the focus neighbour of a control was, it did not take ScrollContainers into account, so controls outside of the container were technically closer in distance to the currently focused control than the controls within the container that were not in view. This has being fixed by checking for ScrollContainers along the way in determining where the 'base' control is in the current scene. If there are no valid neighbours within the container that the focus can move to, the function proceeds as normal, and focus goes outside of the container. This issue has already been reported in Godot, see: godotengine#63055 The fix was based on this PR for the given issue: godotengine#63059
drwhut
added a commit
to drwhut/godot
that referenced
this issue
Sep 9, 2024
The issue was that when the engine was deciding automatically where the focus neighbour of a control was, it did not take ScrollContainers into account, so controls outside of the container were technically closer in distance to the currently focused control than the controls within the container that were not in view. This has being fixed by checking for ScrollContainers along the way in determining where the 'base' control is in the current scene. If there are no valid neighbours within the container that the focus can move to, the function proceeds as normal, and focus goes outside of the container. This issue has already been reported in Godot, see: godotengine#63055 The fix was based on this PR for the given issue: godotengine#63059
This issue seems to have been fixed in master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Godot version
4.0.alpha12
System information
macOS catalina 10.15.7
Issue description
scroll_container_bugreport.webm
Steps to reproduce
Minimal reproduction project
ScrollContainer-focus-bug.zip
The text was updated successfully, but these errors were encountered: