Fix int widgets rounding.

This commit is contained in:
comfyanonymous 2024-05-02 03:34:19 -04:00
parent a56d02efc7
commit 89d0e9abeb
1 changed files with 1 additions and 1 deletions

View File

@ -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
),