-
-
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
Can't change focus to off-screen Control nodes in ScrollContainers by using the arrows. #103726
Comments
Seems to be a |
Damn... It worked fine on Godot 4.3, I don't test the dev / unstable versions, so Idk... Edit: does the 4.5 milestone means that will only be fixed on 4.5? Or there will be a 4.4.x version to fix it? |
I have seen a similar question here before: |
This is a situation where the |
Wdym external controls? Is there a temporary solution I can do? |
Not a descendant control of
Make their rects non-intersecting: For MRP, keep the center of the For your project demo video, the elements are somewhat similar, so it is visually indistinguishable which controls are outside the
When looking for neighbors outward from the |
Tested versions
System information
Godot v4.4.stable - Windows 11 (build 26100) - Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 2060 (NVIDIA; 32.0.15.6636) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 threads)
Issue description
With this new Godot 4 release, it isn't possible anymore to change focus to controls that are off the scroll container screen. While this is actually solvable by toggling the follow_focus property, it actually is affecting my game's code and might be affecting other's.
Take for example to above image of one of my game's scenes, the scroll container is built that way so I can code smooth animations from where changing to the other level containers and center them. This bug makes now the player unnable to use the left arrow to go back, but that weirdly works by using shift+tab (AKA, previous).
Below is a camera recording with my phone of pointing out the issue:
8mb.video-uag-227zR6mX.mp4
Steps to reproduce
Minimal reproduction project (MRP)
Here's the small repro-project I used to replicate the issue:
offscreencontrolneighborfocus_2025-03-06_17-55-38.zip
The text was updated successfully, but these errors were encountered: