guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Jumper <mike.jum...@guac-dev.org>
Subject Re: guacamole-common-js resize method guidance
Date Fri, 16 Feb 2018 17:54:59 GMT
On Fri, Feb 16, 2018 at 9:33 AM, McRoy, Jeffrey (GE Healthcare) <
Jeffrey.McRoy@ge.com> wrote:

> ...
>
> I’ve hit a couple of issues:
> - Calculating the initial scale, Guacamole.Display.getHeight() and
> Guacamole.Display.getWidth() return 0 until the browser window is resized.
> This causes the first attempt at caluclating scale to be 0.
>

Yes, you will need to handle this case.

- In VNC the local mouse location seems to be off from the remote mouse
> locatipn, maybe need scaling applied here also?
>

Yes. The Guacamole.Mouse object is independent of the Guacamole.Client /
Guacamole.Display. If the Guacamole display is being scaled, you will need
to adjust the coordinates returned by Guacamole.Mouse accordingly. This
goes for the mouse emulation objects for touch support, as well.

- Mike

Mime
View raw message