Merge remote-tracking branch 'upstream/master' into cleanup_if_idle

This commit is contained in:
Sida Liu 2024-05-04 00:08:33 +00:00
commit c5c26a26ec

View File

@ -229,7 +229,11 @@ function createIntWidget(node, inputName, inputData, app, isSeedInput) {
val,
function (v) {
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
),