diff --git a/src/eez/gui/event.cpp b/src/eez/gui/event.cpp index f6a5c7d92..d1829298d 100644 --- a/src/eez/gui/event.cpp +++ b/src/eez/gui/event.cpp @@ -114,6 +114,10 @@ static void processTouchEvent(EventType type) { OnTouchFunctionType getWidgetTouchFunction(const WidgetCursor &widgetCursor) { if (widgetCursor) { + if (widgetCursor.widget->action && !widgetCursor.appContext->isWidgetActionEnabled(widgetCursor)) { + return nullptr; + } + if (*g_onTouchWidgetFunctions[widgetCursor.widget->type]) { return *g_onTouchWidgetFunctions[widgetCursor.widget->type]; }