Skip to content

Scroll UIScrollArea to the focused widget (#2745) - #2996

Open
LeoanZhu wants to merge 1 commit into
pythonarcade:developmentfrom
LeoanZhu:scroll-area-follow-focus
Open

LeoanZhu wants to merge 1 commit into
pythonarcade:developmentfrom
LeoanZhu:scroll-area-follow-focus

Conversation

@LeoanZhu

@LeoanZhu LeoanZhu commented Nov 1, 2026

Copy link
Copy Markdown

UIScrollArea now has scroll_to_widget(), which scrolls the smallest distance needed to show a widget. UIFocusMixin.set_focus() calls it for every enclosing scroll area, so TAB and controller D-pad navigation keep the focused widget visible, including in nested scroll areas.

UIScrollArea gains scroll_to_widget(), which scrolls the smallest distance needed to show a widget. UIFocusMixin.set_focus() calls it for every enclosing scroll area, so TAB and controller D-pad navigation keep the focused widget visible, including in nested scroll areas.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant