noVNC dragging and control bar

50 views
Skip to first unread message

Salomé Agudo

unread,
May 19, 2025, 8:52:04 AMMay 19
to noVNC
Hi all!
I'm trying to either enable dragging when on mobile or add the control bar. I haven't been able to fix the dragging on mobile or to add the control bar. Could anybody point out how I can do this? I'm sure the remote viewport is bigger than the current viewport. 
This is my implementation

thanks! 

const rfb = new RFB(vncScreen, vncUrl, {
scaleViewport: false,
dragViewport: true,
clipViewport: true,
viewOnly: false,
resizeSession: false
});

Pierre Ossman

unread,
May 26, 2025, 10:46:16 AMMay 26
to no...@googlegroups.com, Salomé Agudo
Settings for the RFB object is not given to the constructor. You should
set those as properties on the object.

E.g.

rfb.clipViewport = true;

Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Reply all
Reply to author
Forward
0 new messages