From eb22ae54bb6d7b1759752c4e01d0e5e84c1004a0 Mon Sep 17 00:00:00 2001 From: Aurelien Labrosse Date: Thu, 23 Nov 2023 07:49:38 +0000 Subject: [PATCH] fix: regression in long press detection --- lib/Domain/Contactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Domain/Contactor.cpp b/lib/Domain/Contactor.cpp index 68c9363..f2908df 100644 --- a/lib/Domain/Contactor.cpp +++ b/lib/Domain/Contactor.cpp @@ -30,9 +30,9 @@ void Contactor::onDown(long now) { void Contactor::onUp(long now) { currentState = State::Up; - downStartTime = 0; onShortPress(); checkForLongPress(now); + downStartTime = 0; } void Contactor::processPendingEvent(long now) {