From a60e4142b88f22e0de4d0d74b279754f7a3ea365 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 30 Sep 2019 00:42:44 +0300 Subject: web: fixed mouse --- web/share/js/kvm/mouse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/share') 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), }; }; -- cgit v1.2.3