mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-02 23:14:49 +08:00
Fix int widgets rounding.
This commit is contained in:
@@ -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
|
||||
),
|
||||
|
Reference in New Issue
Block a user