Skip to content

Unexpected behavior with Focusables inside Overflow (Scrolling Lists) #40

@robertdodd

Description

@robertdodd

Warning: if you have some funky UI that goes beyond the screen (which
you are likely to have if you use the Overflow feature), this might result
in unexpected behavior. Please fill a bug if you hit that limitation.

That's from the changelog. I've run into this issue myself and will to describe the behavior I'm getting below:

Navigation Wrapping

Navigation wrapping behaves unexpectedly by only wrapping part-way to the beginning/end of the list.

For example, scroll down a list of 10 items, when you hit the end it will wrap to number 5 instead of to number 1.

Hidden Focusables Activated by Mouse

When moving the mouse outside the scrollable area, if it hits where a hidden focusable should be, that focusable is activated.

For example, I have a system that scrolls the active focusable into view. When you move the mouse to the top/bottom of the list, outside the focusable area, it will end up triggering every scrollable and scrolling all the way to the end of the list as each one moves under the mouse.

This might be solvable via bevy_mod_picking, but I haven't tried yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions