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

[LVGL] Encoder navigation issues in the simulator #569

Closed
zalexzperez opened this issue Oct 2, 2024 · 1 comment
Closed

[LVGL] Encoder navigation issues in the simulator #569

zalexzperez opened this issue Oct 2, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@zalexzperez
Copy link

zalexzperez commented Oct 2, 2024

To make it clearer for future readers: Encoder = mouse wheel. Encoder button: middle mouse-wheel button.

Found problems:

  1. Slider widget in edit mode: if value was not changed after entering the edit mode, it's not possible to return to navigate mode by pressing on the encoder button.

  2. Once right out of edit mode, if you press on the encoder button to return to edit mode, it's not possible unless we refocus on the slider by focusing on another object first.

  3. Suppose you are focusing on a button and encoder button is hold-pressed, LV_INDEV_STATE_PRESSED is presumably set, the button gets in the FOCUS-KEY state. Once released, nothing happens; button is still pressed.
    But, if we rotate the encoder to focus on another group object, then that seems to finally set a LV_INDEV_STATE_RELEASED state because the button is unpressed and the action is performed.

In conclusion, all three issues are fixed/prevented by rotating the encoder.

Edit: There's an extra issue. Encoder navigation not possible inside dropdown list.

@zalexzperez zalexzperez added the bug label Oct 2, 2024
@mvladic mvladic added this to the 0.18.0 milestone Oct 6, 2024
mvladic added a commit that referenced this issue Oct 6, 2024
@mvladic
Copy link
Contributor

mvladic commented Oct 6, 2024

Fixed.

@mvladic mvladic changed the title Encoder navigation issues in the simulator [LVGL] Encoder navigation issues in the simulator Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants