You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
can not change clipViewport and dragViewport state #17
hello , I noticed a button in pure no-vnc sdk which could change the state of clipViewport and dragViewport (true <=> false)
I implemented same strategy to get the same result but changing the state of these props does not change the behavior of vnc screen,
I faced this issue since the height of vnc screen is always more than the device and some time there is a need to drag the view to see the bottom of screen but when the clipViewport and dragViewport is true scrolling with touch events in mobile devices does not scroll the content of shared application
I just take the props and pass them in the noVNC library. When you used noVNC directly, can you show me your implementation that made it work? Maybe that will give me some insight into why this is failing.
Activity
roerohan commentedon Dec 3, 2021
@salar-amr
react-vnc/src/lib/VncScreen.tsx
Lines 74 to 75 in 01afe07
I just take the props and pass them in the noVNC library. When you used noVNC directly, can you show me your implementation that made it work? Maybe that will give me some insight into why this is failing.
roerohan commentedon Feb 26, 2022
In #26, I've exposed the
rfbobject. So, if you have a code snippet like:You can access the
rfbobject usingvncScreenRef.current?.rfb. If therfbobject isn't set, it's value isnull.