Make the slider change value before mouse release

This commit is contained in:
jxzhe 2023-03-31 21:26:58 +08:00
parent 85986afc03
commit 30ea017682

View file

@ -58,7 +58,7 @@ WebMidi.enable(function (err) { //check if WebMidi.js is enabled
}
midiSelectSlider = select("#slider");
midiSelectSlider.attribute("max", WebMidi.inputs.length - 1);
midiSelectSlider.changed(inputChanged);
midiSelectSlider.input(inputChanged);
midiIn = WebMidi.inputs[midiSelectSlider.value()]
inputChanged();
});