Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mozilla firefox incorrectly calculates remote mouse position #30

Open
Ani-21 opened this issue Nov 9, 2023 · 1 comment
Open

Mozilla firefox incorrectly calculates remote mouse position #30

Ani-21 opened this issue Nov 9, 2023 · 1 comment

Comments

@Ani-21
Copy link

Ani-21 commented Nov 9, 2023

When launching guacamole-common-js in mozilla firefox, the mouse pointer only reaches the middle of the page.
Tried to inspect the behavior and found that the clientY parameter is calculated differently in css transform property. The range of translate function is defined from 657px to 1657px, whereas it should be defined from 0px to 1000px (offset depends on screen resolution). In Chrome browser remote mouse works as expected.
On the picture you can see the max clientY that is being reached by guacamole mouse pointer.
I'll be glad to recieve any help.

remote-mouse-firefox

@Ani-21
Copy link
Author

Ani-21 commented Dec 6, 2023

It seems that the problem lies with Position.js interface, more specifically with its fromClientPosition method. Body element is defined differently in mozilla compared to other browsers (in other browsers defined as null).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant