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(); invalidate();
} }
} }
bool TopbarImpl::onTouchEnd(coord_t x, coord_t y)
{
// disable touch interaction with topbar widgets
return false;
}
@@ -55,6 +55,10 @@ class TopbarImpl:
void checkEvents() override; void checkEvents() override;
#if defined(HARDWARE_TOUCH)
bool onTouchEnd(coord_t x, coord_t y) override;
#endif
protected: protected:
uint32_t lastRefresh = 0; uint32_t lastRefresh = 0;
}; };
+1 -1
View File
@@ -72,7 +72,7 @@ bool Widget::onTouchEnd(coord_t x, coord_t y)
hasFocus(), x, y); hasFocus(), x, y);
if (fullscreen) { if (fullscreen) {
// forward to widget (lua for instance) //TODO: forward to widget (lua for instance)
return true; return true;
} }