refactoring

This commit is contained in:
Maxim Devaev
2021-10-18 09:37:17 +03:00
parent 34cac8a4c7
commit 01dd31d755

View File

@@ -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() { el.onmousedown = el.ontouchstart = function() {
clear_timer(); clear_timer();
}; };
el.onmouseup = el.ontouchend = function(event) { el.onmouseup = el.ontouchend = function(event) {
let value = el.value; let value = self.slider.getValue(el);
event.preventDefault(); event.preventDefault();
clear_timer(); clear_timer();
el.execution_timer = setTimeout(function() { el.execution_timer = setTimeout(function() {