Event listener for Full screen view #156
Closed
abhishekmardiya
started this conversation in
General
Replies: 1 comment 1 reply
-
The Google Maps API doesn't communicate this, but it should be possible to work with the const [isFullscreen, setFullscreen] = useState(false);
useEffect(() => {
document.addEventListener(
'fullscreenchange',
(ev) => setFullscreen(Boolean(document.fullscreenElement))
);
}, []); |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to listen for an event when a user clicks on the Full Screen View (toggle full screen view) ?
Beta Was this translation helpful? Give feedback.
All reactions