Minor vif to boundValue.modValue so it returns int instead of array for remainder

This commit is contained in:
bluesaxman 2022-11-10 13:43:19 -07:00
parent a45b364a80
commit 975daca5ca

View File

@ -228,7 +228,7 @@ class boundValue {
modValue(mod=0) {
mod = !isNaN(mod) ? mod : 0;
var outOfBoundsBy = this.bounds.outOfBoundsBy([this.value+mod]);
var outOfBoundsBy = this.bounds.outOfBoundsBy([this.value+mod])[0];
return {newValue:this.setValue(this.value+mod),remainder:outOfBoundsBy};
}
}