Skip to content

[REQUEST] Browsing between selectables does not trigger scroll #148

@kadaxo

Description

@kadaxo

Is your feature request related to a problem? Please describe.
Browsing between selectables should trigger scroll to always show where the selectable is.

Describe the solution you'd like
Just compare selected_index to scroll_offset to check if the scrollable is in visible area, otherwise scroll the diff amount.

Describe alternatives you've considered
Tried to implement myself by overriding select() and handle_key(), couldn't make it work, scroll is irresponsive.

Is this feature present in other TUI products?
I don't know.

Additional context
Can be reproduced like this : Window -> Container -> [Button, Button, Button ...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions