From 29ac33b3388fdc3b82e91623d02e3b7c517a3a29 Mon Sep 17 00:00:00 2001 From: dushixiang Date: Mon, 31 Oct 2022 21:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DVNC=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E7=82=B9=E5=87=BB=E5=90=8E=E6=BC=82=E7=A7=BB?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/access/Guacd.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/components/access/Guacd.js b/web/src/components/access/Guacd.js index 3a63c65..0c95290 100644 --- a/web/src/components/access/Guacd.js +++ b/web/src/components/access/Guacd.js @@ -107,7 +107,11 @@ const Guacd = () => { const mouse = new Guacamole.Mouse(element); - mouse.onmousedown = mouse.onmouseup = mouse.onmousemove = function (mouseState) { + mouse.onmousedown = mouse.onmouseup = function (mouseState) { + client.sendMouseState(mouseState); + } + + mouse.onmousemove = function (mouseState) { client.getDisplay().showCursor(false); mouseState.x = mouseState.x / display.getScale(); mouseState.y = mouseState.y / display.getScale();