Стабилизация отображения камеры при повторном подключении
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user