diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/tools.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index 54d3a175..eb3ab957 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -139,8 +139,6 @@ export var tools = new function() { } }; - el.oninput = el.onchange = () => display_callback(self.slider.getValue(el)); - el.onmousedown = el.ontouchstart = function() { clear_timer(); }; @@ -154,7 +152,9 @@ export var tools = new function() { }, delay); }; - display_callback(self.slider.getValue(el)); + let value = self.slider.getValue(el); + el.oninput = el.onchange = () => display_callback(value); + display_callback(value); }, "setParams": function(el, min, max, step, value) { el.min = min; |