diff options
author | Devaev Maxim <[email protected]> | 2018-11-05 06:20:05 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-05 06:20:05 +0300 |
commit | 43bbf725b872d8b2cd1ed29b4689f2f31ffecace (patch) | |
tree | 23b393bd2c6013001b25d87d388353f8dab5d7ed /web/js/mouse.js | |
parent | 9f2c0dd14ed57567eda7c2a539ba445dda79c3b2 (diff) |
js logs refactoring
Diffstat (limited to 'web/js/mouse.js')
-rw-r--r-- | web/js/mouse.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/js/mouse.js b/web/js/mouse.js index dd2ff30d..9f93a659 100644 --- a/web/js/mouse.js +++ b/web/js/mouse.js @@ -96,7 +96,7 @@ function Mouse() { var __sendButton = function(button, state) { - tools.debug("Mouse button", (state ? "pressed:" : "released:"), button); + tools.debug("Mouse: button", (state ? "pressed:" : "released:"), button); __sendMove(); if (__ws) { __ws.send(JSON.stringify({ @@ -115,7 +115,7 @@ function Mouse() { x: __translate(pos.x, 0, el_stream_image.clientWidth, -32768, 32767), y: __translate(pos.y, 0, el_stream_image.clientHeight, -32768, 32767), }; - tools.debug("Mouse move:", to); + tools.debug("Mouse: moved:", to); if (__ws) { __ws.send(JSON.stringify({ event_type: "mouse_move", @@ -145,7 +145,7 @@ function Mouse() { } if (delta.y) { - tools.debug("Mouse wheel:", delta); + tools.debug("Mouse: scrolled:", delta); if (__ws) { __ws.send(JSON.stringify({ event_type: "mouse_wheel", |