-
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, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
In #26, I've exposed the function App() {
const vncScreenRef = useRef<React.ElementRef<typeof VncScreen>>(null);
return (
<VncScreen
url={vncUrl}
scaleViewport
debug
ref={vncScreenRef}
/>
)
} You can access the |
Beta Was this translation helpful? Give feedback.
@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.