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

Navigating interface jump count equal to number of canvases issue #2574

Closed
mtszkarbowiak opened this issue May 8, 2024 · 2 comments
Closed
Labels
bug Something isn't working confirmed ui
Milestone

Comments

@mtszkarbowiak
Copy link
Contributor

Issue description:

Navigating through focusable UI controls makes two changes instead of one.

Steps to reproduce:

  1. Create canvas.
  2. Add 3 buttons (for example vertically).
  3. Just navigate (I mean... try) through them.

The bug is triggered whenever nav-target is manually set or not and auto-focus is used.

Flax version:

1.7.2, 1.8.1, master

Note: For some reason Flax 1.7.2 expected navigation events to be in 'Pressing' mode. During migration to 1.8.1 I needed to switch to 'Press' mode.

This issue impact my project very much. It is problematic.

Suggestion: Add something to debug navigation. Just arrows (like Unity) would be enough.

@mtszkarbowiak
Copy link
Contributor Author

Small update

It turns out that number of jumps is directly correlated to number of active canvases. (No matter what is their configuration.)

@mtszkarbowiak mtszkarbowiak changed the title Navigating interface "double jump" issue Navigating interface jump count equal to number of canvases issue May 8, 2024
@mafiesto4 mafiesto4 added bug Something isn't working ui labels May 9, 2024
@mafiesto4 mafiesto4 added this to the 1.9 milestone May 9, 2024
@mafiesto4
Copy link
Member

Fixed in 0a4e89e (tested both in Editor and cooked Game).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed ui
Projects
None yet
Development

No branches or pull requests

2 participants