diff options
author | Maxim Devaev <[email protected]> | 2021-10-18 09:37:17 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-10-18 09:37:17 +0300 |
commit | 01dd31d755af69692a92033463afb20fb4818104 (patch) | |
tree | 29ce11e444133b537086fa851499bac4afc8e314 /web | |
parent | 34cac8a4c711fa0dbd887981a240b5a125bc4c06 (diff) |
refactoring
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/tools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index 63cbd509..b8045f62 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -139,14 +139,14 @@ export var tools = new function() { } }; - el.oninput = el.onchange = () => display_callback(el.value); + el.oninput = el.onchange = () => display_callback(self.slider.getValue(el)); el.onmousedown = el.ontouchstart = function() { clear_timer(); }; el.onmouseup = el.ontouchend = function(event) { - let value = el.value; + let value = self.slider.getValue(el); event.preventDefault(); clear_timer(); el.execution_timer = setTimeout(function() { |