mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-14 13:35:05 +00:00
Fix potential issues with the int rounding fix.
This commit is contained in:
@@ -229,7 +229,11 @@ 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 - this.options.min) / s) * s + this.options.min;
|
let sh = this.options.min % s;
|
||||||
|
if (isNaN(sh)) {
|
||||||
|
sh = 0;
|
||||||
|
}
|
||||||
|
this.value = Math.round((v - sh) / s) * s + sh;
|
||||||
},
|
},
|
||||||
config
|
config
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user