From 25263b16bb2b99404163805d975749601bad4860 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 8 Jun 2021 21:36:32 +0200 Subject: [PATCH] Forward touch event to child windows even for widgets This is the case when the menu is started whereby the widget takes the full screen. Resolves #106 --- radio/src/gui/colorlcd/widget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/src/gui/colorlcd/widget.cpp b/radio/src/gui/colorlcd/widget.cpp index 78de21dbe..b6e3afb9c 100644 --- a/radio/src/gui/colorlcd/widget.cpp +++ b/radio/src/gui/colorlcd/widget.cpp @@ -75,6 +75,10 @@ bool Widget::onTouchEnd(coord_t x, coord_t y) //TODO: forward to widget (lua for instance) return true; } + + if (Window::onTouchEnd(x, y)) { + return true; + } if (hasFocus()) { onPress();