diff options
-rw-r--r-- | web/share/js/tools.js | 3 |
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); }; }; |