Skip to content

Commit

Permalink
Fix int widgets rounding.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed May 2, 2024
1 parent a56d02e commit 89d0e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/scripts/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
Expand Down

0 comments on commit 89d0e9a

Please sign in to comment.