Fix int widgets rounding.

main
comfyanonymous 10 months ago
parent a56d02efc7
commit 89d0e9abeb

@ -229,7 +229,7 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
val,
function (v) {
const s = this.options.step / 10;
this.value = Math.round(v / s) * s;
this.value = Math.round((v - this.options.min) / s) * s + this.options.min;
},
config
),

Loading…
Cancel
Save