diff options
Diffstat (limited to 'web/share/js/kvm/mouse.js')
-rw-r--r-- | web/share/js/kvm/mouse.js | 4 |
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), }; }; |