Skip to content

fix(color): rotary encoder sometimes inoperative after LUA script exit - #7684

Merged
pfeerick merged 1 commit into
2.12from
3djc/fix-7681
Aug 20, 2026
Merged

fix(color): rotary encoder sometimes inoperative after LUA script exit#7684
pfeerick merged 1 commit into
2.12from
3djc/fix-7681

Conversation

@3djc

@3djc 3djc commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

#7509 backport did include 2 undue line that:

StandaloneLuaWindow's constructor runs before attach() → pushLayer(true). So at constructor time, lv_group_get_default() is still the parent layer's group (the SYS/pagegroup menu). The backported lines therefore do:

  • lv_group_add_obj(, lvobj)
  • lv_group_set_editing(, true) ← poisons the menu's group

attach() then pushes a new layer and re-adds lvobj to the new group (lv_group_add_obj removes it from the old one), but editing = 1 is left behind on the parent group forever. On long-RTN, Layer::pop deletes the Lua group and restores the parent group as default — still stuck in edit mode, so the encoder sends LV_KEY_LEFT/RIGHT to the focused object instead of moving focus. Non-editable focus → wheel does nothing.

Fixes #7681

Not needed for main

@3djc 3djc added this to the 2.12.3 milestone Aug 20, 2026
@3djc 3djc added the bug/regression ↩️ A new version of EdgeTX broke something label Aug 20, 2026
@3djc
3djc requested a review from philmoz August 20, 2026 12:15
@3djc 3djc changed the title fix scroll wheel being sometimes inoperative fix scroll wheel being sometimes inoperative after LUA script exit Aug 20, 2026
@deadbytefpv

Copy link
Copy Markdown

thank you for the fast resolution on this one!

@philmoz

philmoz commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Looks good.

@pfeerick pfeerick changed the title fix scroll wheel being sometimes inoperative after LUA script exit fix(color): rotary encoder sometimes inoperative after LUA script exit Aug 20, 2026
@pfeerick
pfeerick merged commit 81667cd into 2.12 Aug 20, 2026
56 checks passed
@pfeerick
pfeerick deleted the 3djc/fix-7681 branch August 20, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug/regression ↩️ A new version of EdgeTX broke something

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants