summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-30 00:42:44 +0300
committerDevaev Maxim <[email protected]>2019-09-30 00:42:44 +0300
commita60e4142b88f22e0de4d0d74b279754f7a3ea365 (patch)
treea4a97c868368cdc90ceee679bfff73cde334f2c0 /web
parent8f43d23089140ded59e49beaeebb01eb3ff7972c (diff)
web: fixed mouse
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/mouse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js
index c462ffa6..cf2dfac4 100644
--- a/web/share/js/kvm/mouse.js
+++ b/web/share/js/kvm/mouse.js
@@ -139,8 +139,8 @@ export function Mouse() {
var __streamMoveHandler = function(event) {
let rect = event.target.getBoundingClientRect();
__current_pos = {
- x: Math.min(Math.round(event.clientX - rect.left), 0),
- y: Math.min(Math.round(event.clientY - rect.top), 0),
+ x: Math.max(Math.round(event.clientX - rect.left), 0),
+ y: Math.max(Math.round(event.clientY - rect.top), 0),
};
};