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