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
This commit is contained in:
Raphael Coeffic
2021-06-08 21:36:32 +02:00
parent 9b3cb9f72f
commit 25263b16bb
+4
View File
@@ -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();