Disable touch interaction with topbar widgets
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user