Skip to content

Commit

Permalink
Traktor S3: Don't switch to deck that received instant double
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg committed Feb 7, 2022
1 parent 03bf585 commit 5bce77d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions res/controllers/Traktor-Kontrol-S3-hid-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1803,13 +1803,14 @@ TraktorS3.Controller.prototype.deckSwitchHandler = function(field) {
if (this.deckSwitchPressed === "") {
this.deckSwitchPressed = field.group;
} else {
// If a different deck switch is already pressed, do an instant double.
// If a different deck switch is already pressed, do an instant double and do not select the
// deck.
var cloneFrom = this.Channels[this.deckSwitchPressed];
var cloneFromNum = cloneFrom.parentDeck.deckNumber;
engine.setValue(field.group, "CloneFromDeck", cloneFromNum);
return;
}

// Always activated pressed deck switch.
var channel = this.Channels[field.group];
var deck = channel.parentDeck;

Expand Down

0 comments on commit 5bce77d

Please sign in to comment.