From ab6ca4589b76f27feb462742c31f6a2b2fe3de14 Mon Sep 17 00:00:00 2001 From: Ovgodd Date: Tue, 1 Sep 2026 10:27:04 +0200 Subject: [PATCH] =?UTF-8?q?fixup!=20=E2=99=BB=EF=B8=8F(frontend)=20refacto?= =?UTF-8?q?r=20screen=20share=20zoom=20pan=20with=20useMove=20and=20impera?= =?UTF-8?q?tive=20DOM=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rooms/livekit/components/ScreenShareZoomControls.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx index 11472f69..1f8dd1be 100644 --- a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx +++ b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx @@ -41,9 +41,7 @@ export const ScreenShareZoomControls = ({ const [isFullscreen, setIsFullscreen] = useState(false) // Tracks whether this tile's container triggered fullscreen (vs another share's). const wasThisTileFullscreen = useRef(false) - const [isFullscreenAvailable] = useState( - () => typeof document !== 'undefined' && document.fullscreenEnabled - ) + const isFullscreenAvailable = document.fullscreenEnabled // Covers Esc and browser UI exits, not just the toolbar button. // Only this tile's instance announces to avoid duplicates with multiple shares.