From 0ac84084748407cab4e81aefad0e6544e351c3f8 Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Wed, 4 Dec 2019 01:56:07 +0100 Subject: [PATCH] Do not stop already expired SYNC timer --- res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js b/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js index 68e05ef65765..4dff41a6271b 100644 --- a/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js +++ b/res/controllers/Traktor-Kontrol-S2-MK3-hid-scripts.js @@ -286,11 +286,8 @@ TraktorS2MK3.syncHandler = function (field) { engine.setValue(field.group, "sync_enabled", !sync); } else { // Button is released, check if timer is still running - if (TraktorS2MK3.syncPressedTimer[field.group] === 0) { - // long press -> sync lock - engine.stopTimer(TraktorS2MK3.syncPressedTimer[field.group]); - TraktorS2MK3.syncPressedTimer[field.group] = 0; - } else { + // If not expired disable sync, otherwise do nothing to lock sync + if (TraktorS2MK3.syncPressedTimer[field.group] !== 0) { // short press -> disable sync engine.setValue(field.group, "sync_enabled", 0); }