We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2047cfa + 537993e commit 7ab10b5Copy full SHA for 7ab10b5
1 file changed
src/litegraph.js
@@ -9950,11 +9950,11 @@ LGraphNode.prototype.executeAction = function(action)
9950
}
9951
break;
9952
case "slider":
9953
- var range = w.options.max - w.options.min;
+ var old_value = w.value;
9954
var nvalue = Math.clamp((x - 15) / (widget_width - 30), 0, 1);
9955
if(w.options.read_only) break;
9956
w.value = w.options.min + (w.options.max - w.options.min) * nvalue;
9957
- if (w.callback) {
+ if (old_value != w.value) {
9958
setTimeout(function() {
9959
inner_value_change(w, w.value);
9960
}, 20);
0 commit comments