diff options
author | Devaev Maxim <[email protected]> | 2018-12-18 23:25:23 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-12-18 23:28:08 +0300 |
commit | 3e7b5bf04908dbcf14bbeafc052bce9c51bb6b2c (patch) | |
tree | 9d7d008bb4f65769beeb2196dd7d4cae8143a169 /web/share/js/kvm/mouse.js | |
parent | 8867b32356d0731dfffa2687e669cb9462f206b8 (diff) |
refactoring
Diffstat (limited to 'web/share/js/kvm/mouse.js')
-rw-r--r-- | web/share/js/kvm/mouse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index 58e46d15..59b3fc73 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -23,7 +23,7 @@ function Mouse() { $("stream-box").onwheel = __wheelHandler; $("stream-box").ontouchstart = (event) => __touchMoveHandler(event); - Array.prototype.forEach.call(document.querySelectorAll("[data-mouse-button]"), function(el_button) { + tools.forEach($$$("[data-mouse-button]"), function(el_button) { var button = el_button.getAttribute("data-mouse-button"); tools.setOnDown(el_button, () => __sendButton(button, true)); tools.setOnUp(el_button, () => __sendButton(button, false)); |