Replies: 1 comment
-
The function exists. I'm not sure where Here is a minimal setup that I just tested on codesandbox: export default function App() {
const onDoubleClick = (e) => {
e.target.requestFullscreen().catch((err) => {
alert('Open in a seperate tab to allow fullscreen access')
})
}
return (
<Canvas onDoubleClick={onDoubleClick}>
{/* stuff */}
</Canvas>
)
}
`` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to replicate the following code in react-three-fiber but cannot seem to find the requestFullScreen() function
Any help would be much appreciated.
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions