修复VNC协议鼠标点击后漂移的问题
This commit is contained in:
parent
b42455b95b
commit
29ac33b338
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user