We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 376f643 commit 537993eCopy full SHA for 537993e
1 file changed
src/litegraph.js
@@ -9905,10 +9905,10 @@ LGraphNode.prototype.executeAction = function(action)
9905
}
9906
break;
9907
case "slider":
9908
- var range = w.options.max - w.options.min;
+ var old_value = w.value;
9909
var nvalue = Math.clamp((x - 15) / (widget_width - 30), 0, 1);
9910
w.value = w.options.min + (w.options.max - w.options.min) * nvalue;
9911
- if (w.callback) {
+ if (old_value != w.value) {
9912
setTimeout(function() {
9913
inner_value_change(w, w.value);
9914
}, 20);
0 commit comments