Skip to content

Commit 7e9518f

Browse files
authored
Merge pull request jagenjo#410 from Guillaume-Fgt/slider_precision
replacing slider precision harcoded value
2 parents 5516438 + 8785006 commit 7e9518f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/litegraph.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9837,7 +9837,11 @@ LGraphNode.prototype.executeAction = function(action)
98379837
ctx.textAlign = "center";
98389838
ctx.fillStyle = text_color;
98399839
ctx.fillText(
9840-
w.label || w.name + " " + Number(w.value).toFixed(3),
9840+
w.label || w.name + " " + Number(w.value).toFixed(
9841+
w.options.precision != null
9842+
? w.options.precision
9843+
: 3
9844+
),
98419845
widget_width * 0.5,
98429846
y + H * 0.7
98439847
);

0 commit comments

Comments
 (0)