diff options
Diffstat (limited to 'kvmd/web/js/mouse.js')
-rw-r--r-- | kvmd/web/js/mouse.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kvmd/web/js/mouse.js b/kvmd/web/js/mouse.js index 3195582c..b9d27e67 100644 --- a/kvmd/web/js/mouse.js +++ b/kvmd/web/js/mouse.js @@ -4,12 +4,12 @@ var mouse = new function() { var __sent_pos = {x: 0, y:0}; this.init = function() { - el_stream_image = $("stream-image"); - el_stream_image.onmousedown = (event) => __buttonHandler(event, true); - el_stream_image.onmouseup = (event) => __buttonHandler(event, false); - el_stream_image.oncontextmenu = (event) => event.preventDefault(); - el_stream_image.onmousemove = __moveHandler; - el_stream_image.onwheel = (event) => __wheelHandler(event); + el_stream_box = $("stream-box"); + el_stream_box.onmousedown = (event) => __buttonHandler(event, true); + el_stream_box.onmouseup = (event) => __buttonHandler(event, false); + el_stream_box.oncontextmenu = (event) => event.preventDefault(); + el_stream_box.onmousemove = __moveHandler; + el_stream_box.onwheel = (event) => __wheelHandler(event); setInterval(__sendMove, 100); }; |