Skip to content
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

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

Open
robertdodd opened this issue Dec 18, 2023 · 1 comment
Open

Comments

@robertdodd
Copy link

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.

@nicopap
Copy link
Owner

nicopap commented Dec 23, 2023

Thank for reporting it! I'm glad someone reads the disclaimers 😅 I've been very busy lately. This is definitively on top of my priority list when I have some time to myself.

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

No branches or pull requests

2 participants