Skip to content

Commit

Permalink
Disable scratch when switching decks to prevent infinite scratch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrn authored and mrn committed Jul 8, 2021
1 parent 57670a4 commit a3f0009
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions res/controllers/Traktor-Kontrol-S3-hid-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,12 @@ TraktorS3.Controller.prototype.deckSwitchHandler = function(field) {
return;
}

var isScratching = engine.getValue(this.activeChannel, "scratch2_enable");
if (isScratching) {
engine.setValue(this.activeChannel, "scratch2", 0.0);
engine.setValue(this.activeChannel, "scratch2_enable", false);
}

var channel = this.Channels[field.group];
var deck = channel.parentDeck;
deck.activateChannel(channel);
Expand Down

0 comments on commit a3f0009

Please sign in to comment.