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
Help using DragToggle in vnc_auto #480
Comments
As you can see in our example application (vnc.html which uses ui.js), on touch devices the actual page content is never bigger than the browser window but the VNC content can be. We call this behavior "clipping" or simply viewport. This is a setting which always is forced on touch enabled devices. Our dragging relies on moving the display viewport on the VNC content. Since the viewport/content can be bigger than the browser window when NOT clipping we must couple dragging with clipping. Use:
|
Thank you @samhed for this clarification. I'm still trying to figure out how I could adopt noVNC to my needs. I was trying to enable clipping/dragging but it seems that it is not easy like that:
:(
Best regards, |
So, you have the first part right -- Dragging requires enabling dragging on the RFB object ( Look for
noVNC does support local scaling. You can see how it works at https://github.com/novnc/noVNC/blob/master/app/ui.js#L1247 ( |
I'll give that a try, thank you very much! |
Hey,
it's very complicated to strip vnc.html down to a minimum, especially when you have to use and debug it on a mobile device aditionally.
I then tried to add set_viewportDrag in vnc_auto.html after rfb.connect function
This sueccessfully disables the click event inside the vnc session but does not enable draging on my mobile Android phone.
I guess this might have something to do with CSS and stylesheets of the canvas element?
Thank you for any hint,
Jonas
The text was updated successfully, but these errors were encountered: