Fix crash on tab group sub page access/exit (#1206)

Fixes where touching first widget space on top bar when editing would lead to segfault / radio crash
This commit is contained in:
Malte Langermann
2021-12-03 10:26:30 +11:00
committed by GitHub
parent 8a47acd809
commit 789692fc8e
+1 -2
View File
@@ -76,7 +76,7 @@ bool TabsCarousel::onTouchStart(coord_t x, coord_t y)
if(sliding)
sliding = false;
return true;
return Window::onTouchStart(x,y);
}
bool TabsCarousel::onTouchEnd(coord_t x, coord_t y)
@@ -100,7 +100,6 @@ bool TabsCarousel::onTouchSlide(coord_t x, coord_t y, coord_t startX, coord_t st
sliding = true;
Window::onTouchSlide(x,y,startX,startY,slideX,slideY);
menu->setCurrentTab(currentIndex);
return true;
}