Fix clicking on topbar
This commit is contained in:
committed by
Raphael Coeffic
parent
98e231c9d4
commit
d6d7713000
@@ -28,7 +28,6 @@ constexpr uint32_t TOPBAR_REFRESH = 1000 / 10; // 10 Hz
|
||||
TopbarImpl::TopbarImpl(Window * parent) :
|
||||
TopbarImplBase(parent, {0, 0, LCD_W, MENU_HEADER_HEIGHT}, &g_model.topbarData)
|
||||
{
|
||||
//attach(parent);
|
||||
}
|
||||
|
||||
unsigned int TopbarImpl::getZonesCount() const
|
||||
@@ -224,10 +223,3 @@ void TopbarImpl::checkEvents()
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
bool TopbarImpl::onTouchEnd(coord_t x, coord_t y)
|
||||
{
|
||||
// disable touch interaction with topbar widgets
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -56,9 +56,6 @@ class TopbarImpl:
|
||||
|
||||
void checkEvents() override;
|
||||
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
bool onTouchEnd(coord_t x, coord_t y) override;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
uint32_t lastRefresh = 0;
|
||||
|
||||
Reference in New Issue
Block a user