Commit daa92a8f authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix potential issues with the int rounding fix.

parent 89d0e9ab
......@@ -229,7 +229,11 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
val,
function (v) {
const s = this.options.step / 10;
this.value = Math.round((v - this.options.min) / s) * s + this.options.min;
let sh = this.options.min % s;
if (isNaN(sh)) {
sh = 0;
}
this.value = Math.round((v - sh) / s) * s + sh;
},
config
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment