You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by "Charitha Dandeniya Arachchige (JIRA)" <ji...@apache.org> on 2018/04/02 19:35:00 UTC
[jira] [Created] (GUACAMOLE-534) Mouse cursor goes out of sync when
VNC display is scaled
Charitha Dandeniya Arachchige created GUACAMOLE-534:
-------------------------------------------------------
Summary: Mouse cursor goes out of sync when VNC display is scaled
Key: GUACAMOLE-534
URL: https://issues.apache.org/jira/browse/GUACAMOLE-534
Project: Guacamole
Issue Type: Bug
Components: guacamole-common-js
Reporter: Charitha Dandeniya Arachchige
Attachments: scaleFix.diff
I'm using guacamole-common-js to write a JS client to connect to a remote desktop via VNC protocol. Following is the code I use to add Guacamole client to the display div. I'm using the scale() function to scale the VNC window.
var display = document.getElementById("display");
var guac = new Guacamole.Client(new Guacamole.HTTPTunnel("tunnel"));
display.appendChild(guac.getDisplay().getElement());
display.scale(0.9);
When I do this the mouse cursor is going out of sync. There is a gap between the actual cursor and the remote cursor. I could fix this by correcting the mouse position in the sendMouseState() function of Client module. I have attached the scaleFix.diff file which includes this fix. I hope this would be useful.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)