From 7c140df11af21633bac93c1554981a2a159fc745 Mon Sep 17 00:00:00 2001 From: Cyril Date: Mon, 13 Jul 2026 15:38:59 +0200 Subject: [PATCH] =?UTF-8?q?fixup!=20=F0=9F=92=84(frontend)=20use=20distinc?= =?UTF-8?q?t=20expand/collapse=20icons=20for=20fullscreen=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rooms/livekit/components/ScreenShareZoomControls.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx index 73cee32b..b672921f 100644 --- a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx +++ b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx @@ -37,7 +37,8 @@ export const ScreenShareZoomControls = ({ const announce = useScreenReaderAnnounce() const [isFullscreen, setIsFullscreen] = useState(false) - const wasOwnFullscreen = useRef(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 ) @@ -50,10 +51,10 @@ export const ScreenShareZoomControls = ({ setIsFullscreen(entered) if (entered && document.fullscreenElement === containerRef.current) { - wasOwnFullscreen.current = true + wasThisTileFullscreen.current = true announce(t('fullScreenEntered'), 'assertive') - } else if (!entered && wasOwnFullscreen.current) { - wasOwnFullscreen.current = false + } else if (!entered && wasThisTileFullscreen.current) { + wasThisTileFullscreen.current = false announce(t('fullScreenExited'), 'assertive') } }