Стабилизация отображения камеры при повторном подключении

This commit is contained in:
DCCONSTRUCTIONS
2026-08-23 15:33:18 +03:00
parent 99eafaf02d
commit 5ebc9fc27c
2 changed files with 64 additions and 5 deletions
@@ -123,9 +123,12 @@ export function FloatingObservationWindow({
return () => observer.disconnect();
}, [boundsRef]);
const initialRect = bounds ? initialObservationWindowRect(index, count, bounds) : null;
// Camera media admission must not wait for the viewport observer. A source
// can arrive in the same commit as a workspace transition; mounting it with
// the canonical fallback geometry keeps the browser transport alive until
// the real bounds are measured immediately afterward.
const initialRect = initialObservationWindowRect(index, count, bounds ?? undefined);
const windowRect = rect ?? initialRect;
if (!windowRect) return null;
return (
<WorkspaceWindow