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

SoarETX for 2.8 #88

Merged
merged 4 commits into from
Nov 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Workaround for the bug sending EVT_VIRTUAL_ENTER_LONG to Lua during s…
…crolling in ETX 2.8
  • Loading branch information
jfrickmann committed Nov 21, 2022
commit 232e7c9afd9c6ad17afbe61a5e19b0cea0dc0a0a
8 changes: 6 additions & 2 deletions sdcard/c480x272/WIDGETS/LibGUI/libgui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
-- The dynamically loadable part of the shared Lua GUI library. --
-- --
-- Author: Jesper Frickmann --
-- Date: 2022-05-05 --
-- Version: 1.0.1 --
-- Date: 2022-11-20 --
-- Version: 1.0.2 --
-- --
-- Copyright (C) EdgeTX --
-- --
Expand Down Expand Up @@ -292,6 +292,10 @@ function lib.newGUI()
event = EVT_TOUCH_TAP
end
end
-- ETX 2.8 rc 4 bug fix
if scrolling and event == EVT_VIRTUAL_ENTER_LONG then
return
end
-- If we put a finger down on a menu item and immediately slide, then we can scroll
if event == EVT_TOUCH_SLIDE then
if not scrolling then
Expand Down