diff options
author | Maxim Devaev <[email protected]> | 2021-08-13 16:24:48 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-08-13 16:24:48 +0300 |
commit | c233e3bee7b30f7f285869d81f2e18b16b8708c2 (patch) | |
tree | 9235f00e7e1a32abc3df7ef3ec5ec7836f507775 /web/share/js/kvm/mouse.js | |
parent | 551e0a5598aa6f641da9d6557201b6908d70b429 (diff) |
save hid squash value
Diffstat (limited to 'web/share/js/kvm/mouse.js')
-rw-r--r-- | web/share/js/kvm/mouse.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index 6babafa6..c3215d55 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -61,6 +61,11 @@ export function Mouse(__getResolution, __recordWsEvent) { $("stream-box").onwheel = __streamWheelHandler; $("stream-box").ontouchstart = (event) => __streamTouchMoveHandler(event); + $("hid-mouse-squash-switch").checked = tools.storage.getBool("hid.mouse.squash", true); + tools.el.setOnClick($("hid-mouse-squash-switch"), function() { + tools.storage.setBool("hid.mouse.squash", $("hid-mouse-squash-switch").checked); + }, false); + setInterval(__sendMove, 100); }; |