"...composable_kernel_onnx.git" did not exist on "dfa0213942000be269a1b05058f26893e7e9e56f"
Commit 89d0e9ab authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix int widgets rounding.

parent a56d02ef
...@@ -229,7 +229,7 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) { ...@@ -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
), ),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment