From a093db3756b9d564a7a30ce13e1c521a08e76592 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:02:07 +0000 Subject: [PATCH] Fix complementarity desync --- application/components/KeypadButton.qml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/application/components/KeypadButton.qml b/application/components/KeypadButton.qml index c9d1666f..c3ff2518 100644 --- a/application/components/KeypadButton.qml +++ b/application/components/KeypadButton.qml @@ -35,10 +35,6 @@ Item { if(!longTimer.running) { longTimer.start(); } - - if(releaseTimer.running) { - releaseTimer.stop(); - } } function onButtonReleased() { @@ -49,10 +45,10 @@ Item { } else { control.pressed(); control.shortPress(); - releaseTimer.start(); + control.released() } } else { - releaseTimer.start(); + control.released() } if(repeatTimer.running) { @@ -76,13 +72,6 @@ Item { onReleased: onButtonReleased() } - Timer { - id: releaseTimer - repeat: false - interval: 1 - onTriggered: control.released() - } - Timer { id: longTimer repeat: false