summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-12 09:05:38 +0300
committerDevaev Maxim <[email protected]>2020-07-12 09:05:38 +0300
commit07fb731b215a560bdc0a89a1fd5c199d910034a3 (patch)
treee6d023a25a3897d3bb2a12f6d3e061095b8adef2 /web
parent2512c6448c76a2a78dfdf96852f57e8c643b5f35 (diff)
partial fix for jumping slider
Diffstat (limited to 'web')
-rw-r--r--web/share/js/tools.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js
index e9de1187..5bd41548 100644
--- a/web/share/js/tools.js
+++ b/web/share/js/tools.js
@@ -126,10 +126,11 @@ export var tools = new function() {
};
el.onmouseup = el.ontouchend = function(event) {
+ let value = el.value;
event.preventDefault();
clear_timer();
el.execution_timer = setTimeout(function() {
- execute_callback(el.value);
+ execute_callback(value);
}, delay);
};
};