mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user