We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97841e8 commit 84e98e8Copy full SHA for 84e98e8
radio/src/lua/lua_widget.cpp
@@ -120,12 +120,6 @@ void LuaEventHandler::event_cb(lv_event_t* e)
120
downTime = RTOS_GET_MS();
121
}
122
} else if (code == LV_EVENT_RELEASED) {
123
- LuaEventData* const es = luaGetEventSlot();
124
- if (es) {
125
- es->event = EVT_TOUCH_BREAK;
126
- TRACE("EVT_TOUCH_BREAK");
127
- }
128
-
129
// tap count handling
130
uint32_t now = RTOS_GET_MS();
131
if (now - downTime <= LUA_TAP_TIME) {
@@ -138,6 +132,13 @@ void LuaEventHandler::event_cb(lv_event_t* e)
138
132
} else {
139
133
tapCount = 0;
140
134
135
+
136
+ LuaEventData* const es = luaGetEventSlot();
137
+ if (es && downTime) {
+ downTime = 0;
+ es->event = EVT_TOUCH_BREAK;
+ TRACE("EVT_TOUCH_BREAK");
141
+ }
142
143
#endif
144
0 commit comments