Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix int widgets rounding.

comfyanonymous89d0e9abeb31
diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js
index 00c91914d..8f1603253 100644
--- a/web/scripts/widgets.js
+++ b/web/scripts/widgets.js
@@ -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
),