We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3518d19 commit 0a6a2f4Copy full SHA for 0a6a2f4
1 file changed
src/app/App.jsx
@@ -2785,9 +2785,10 @@ export function App() {
2785
2786
useEffect(() => {
2787
const onFullscreenChange = () => {
2788
+ const stage = viewerStageRef.current;
2789
setOverlayVisibility(
2790
"viewerFullscreen",
- document.fullscreenElement === viewerStageRef.current
2791
+ Boolean(stage) && document.fullscreenElement === stage
2792
);
2793
};
2794
0 commit comments