mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
partial fix for jumping slider
This commit is contained in:
@@ -126,10 +126,11 @@ export var tools = new function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
el.onmouseup = el.ontouchend = function(event) {
|
el.onmouseup = el.ontouchend = function(event) {
|
||||||
|
let value = el.value;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
clear_timer();
|
clear_timer();
|
||||||
el.execution_timer = setTimeout(function() {
|
el.execution_timer = setTimeout(function() {
|
||||||
execute_callback(el.value);
|
execute_callback(value);
|
||||||
}, delay);
|
}, delay);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user