Reset timer by long pressing on the button (#1214)

* Reset timer by long pressing on the button

* Consider press_lost as released

Otherwise the bar would keep increasing if the finger slid off the
button
This commit is contained in:
Riku Isokoski
2022-07-21 22:53:36 +03:00
committed by GitHub
parent 411f2d19e1
commit 9ee1160578
4 changed files with 99 additions and 26 deletions

View File

@@ -183,7 +183,7 @@ void DisplayApp::Refresh() {
case Messages::TimerDone:
if (currentApp == Apps::Timer) {
auto* timer = static_cast<Screens::Timer*>(currentScreen.get());
timer->SetDone();
timer->Reset();
} else {
LoadApp(Apps::Timer, DisplayApp::FullRefreshDirections::Down);
}