Disable touch interaction with topbar widgets

This commit is contained in:
Raphael Coeffic
2021-05-13 16:57:28 +02:00
parent 5825efc520
commit e2eb7ff5c4
3 changed files with 12 additions and 2 deletions
@@ -193,3 +193,9 @@ void TopbarImpl::checkEvents()
invalidate();
}
}
bool TopbarImpl::onTouchEnd(coord_t x, coord_t y)
{
// disable touch interaction with topbar widgets
return false;
}
+5 -1
View File
@@ -54,7 +54,11 @@ class TopbarImpl:
void paint(BitmapBuffer * dc) override;
void checkEvents() override;
#if defined(HARDWARE_TOUCH)
bool onTouchEnd(coord_t x, coord_t y) override;
#endif
protected:
uint32_t lastRefresh = 0;
};
+1 -1
View File
@@ -72,7 +72,7 @@ bool Widget::onTouchEnd(coord_t x, coord_t y)
hasFocus(), x, y);
if (fullscreen) {
// forward to widget (lua for instance)
//TODO: forward to widget (lua for instance)
return true;
}