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
Mouse cursor is shifted from cursor pointer until I scroll to the far right and get out of the window #993
Comments
I have tried using the complete vnc_lite.html file and the shifting offset is still present. Note that I have disable mouse acceleration on the server. The offset is also present when I use gvncviewer. Even when "-usbdevice tablet" option is used when starting qemu |
So if the offset is also present when you are using a different VNC viewer, doesn't that indicate that your issue is serverside? |
Sorry I didn't try this through the first time : I tried it on gvncviewer but the mouse cursor cannot escape the server screen so the problem does not really happen. I tried it on Remmina as well and once the mouse enhancement parameter is off, it works quite fine. What I find odd with noVNC is that putting the scrollbar to the far right and exiting, reentering the vnc screen fixes the issue. |
I tried on |
Could you make a screencast or a screenshot that shows this issue? |
This simply looks like you haven't got proper "tablet mode" working in your virtual machine. You'll never get reliable cursor tracking without that. Both gifs show the same issue, only that the first one seems to have hidden the local cursor. |
Okay, so it seems it comes from the qemu version I am using. I am closing the issue, if I manage to solve it through qemu I will let you know. |
@sarcarx Can you please share with the solution. I'm having same issue |
Yes, it was because I was loading the virtual machine with a snapshot that was not started with the right options. |
WOW, I just finished building an Ubuntu/Xen server for the first time, and I had been getting a little annoyed about this issue. I actually thought that maybe it was just part of the functionality. You guys can't imagine how grateful I am for this thread. It was usbdevice=['tablet'] in my case, but yes, the problem is completely fixed. |
Totally agree. A long term annoying situation fixed. |
On Libvirt, the problem can be fixed by adding a input device to the <devices>
...
<input type='tablet' bus='virtio'/>
...
</devices> |
Using the vnc_lite.html as a template.
The first time the mouse enters the vnc div
noVNC_canvas
the server mouse pointer is shifted from the real one of a strict offset.If I scroll the horizontal bar to the far right side of the canva, get the mouse pointer out of the screen and reenters it, it settles the server cursor at the exact same position as my local mouse pointer. I can scroll back to the far left and it stays correct.
Is there a way to correct the shift issue right at the first entering of the canva?
Here is the way I create the canva:
and the rfb code:
rfb = new RFB(document.getElementById('noVNC_canvas'), url)
The text was updated successfully, but these errors were encountered: