Skip to content

Commit

Permalink
Fix complementarity desync
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Oct 29, 2024
1 parent 9e67567 commit a093db3
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions application/components/KeypadButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ Item {
if(!longTimer.running) {
longTimer.start();
}

if(releaseTimer.running) {
releaseTimer.stop();
}
}

function onButtonReleased() {
Expand All @@ -49,10 +45,10 @@ Item {
} else {
control.pressed();
control.shortPress();
releaseTimer.start();
control.released()
}
} else {
releaseTimer.start();
control.released()
}

if(repeatTimer.running) {
Expand All @@ -76,13 +72,6 @@ Item {
onReleased: onButtonReleased()
}

Timer {
id: releaseTimer
repeat: false
interval: 1
onTriggered: control.released()
}

Timer {
id: longTimer
repeat: false
Expand Down

0 comments on commit a093db3

Please sign in to comment.