Skip to content

Commit

Permalink
fixup! midi-components-0.0.js: Add JogWheel component
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftb0y committed Jul 9, 2022
1 parent f70f339 commit d1a877b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions res/controllers/midi-components-0.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@
}
});

var JogWheel = function(options) {
var JogWheelBasic = function(options) {
Component.call(this, options);

// TODO 2.4: replace lodash polyfills with Number.isInteger/isFinite
Expand All @@ -724,7 +724,7 @@
console.warn("missing scratch deck");
return;
}
if (!(this.deck > 0)) {
if (this.deck <= 0) {
console.warn("invalid deck number: " + this.deck);
return;
}
Expand All @@ -748,7 +748,7 @@
this.inKey = "jog";
};

JogWheel.prototype = new Component({
JogWheelBasic.prototype = new Component({
vinylMode: true,
isPress: Button.prototype.isPress,
inValueScale: function(value) {
Expand Down Expand Up @@ -1228,7 +1228,7 @@
exports.Encoder = Encoder;
exports.ComponentContainer = ComponentContainer;
exports.Deck = Deck;
exports.JogWheel = JogWheel;
exports.JogWheelBasic = JogWheelBasic;
exports.EffectUnit = EffectUnit;
global.components = exports;
}(this));

0 comments on commit d1a877b

Please sign in to comment.