Browse Source

Fix int widgets rounding.

pull/1503/head
comfyanonymous 7 months ago
parent
commit
89d0e9abeb
  1. 2
      web/scripts/widgets.js

2
web/scripts/widgets.js

@ -229,7 +229,7 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
val, val,
function (v) { function (v) {
const s = this.options.step / 10; 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 config
), ),

Loading…
Cancel
Save