Skip to content

Scroll to active widget on set_active_parent#219

Merged
RobLoach merged 2 commits into
masterfrom
fix/scroll-active-widget
May 30, 2026
Merged

Scroll to active widget on set_active_parent#219
RobLoach merged 2 commits into
masterfrom
fix/scroll-active-widget

Conversation

@RobLoach
Copy link
Copy Markdown
Owner

In nk_console_set_active_parent, instead of always resetting scroll to (0,0), set scroll_to_widget = data->active_widget so the next render pass scrolls to the focused widget. Falls back to scroll reset when no active widget is set. Fixes #210

@RobLoach RobLoach self-assigned this May 30, 2026
@RobLoach
Copy link
Copy Markdown
Owner Author

Fix build

@RobLoach RobLoach marked this pull request as draft May 30, 2026 11:54
@RobLoach RobLoach marked this pull request as ready for review May 30, 2026 12:43
@RobLoach RobLoach merged commit b22925f into master May 30, 2026
1 check passed
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.

Scroll to active widget when switching active parent

1 participant