This commit is contained in:
Peter Feerick
2021-08-25 11:21:40 +10:00
parent 9150e74f50
commit bbe312a8fd
2 changed files with 2 additions and 4 deletions
+2 -3
View File
@@ -185,8 +185,7 @@ bool SwitchChoice::onTouchStart(coord_t x, coord_t y)
bool SwitchChoice::onTouchEnd(coord_t x, coord_t y)
{
setFocus(SET_FOCUS_DEFAULT);
if(duration10ms != 1) {
setEditMode(true);
openMenu();
@@ -194,6 +193,6 @@ bool SwitchChoice::onTouchEnd(coord_t x, coord_t y)
duration10ms = 0;
return true; // FormField::onTouchEnd(x, y);
return true;
}
#endif
-1
View File
@@ -65,7 +65,6 @@ class SwitchChoice : public FormField
inline bool isLongPress(tmr10ms_t longPressDuration = LONG_PRESS_10MS);
#endif
void setAvailableHandler(std::function<bool(int)> handler)
{
isValueAvailable = std::move(handler);