From 84b49c435d942f9fa8cdb7abc8d9cec25b6b7e04 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Thu, 2 Sep 2021 13:42:42 -0700 Subject: [PATCH] Fix switching between layouts --- src/VideoGrid.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VideoGrid.jsx b/src/VideoGrid.jsx index 6b222b92..3eb300b5 100644 --- a/src/VideoGrid.jsx +++ b/src/VideoGrid.jsx @@ -499,6 +499,8 @@ export function VideoGrid({ participants, layout }) { 0 ); + lastLayoutRef.current = layout; + return { tiles: newTiles, tilePositions: getTilePositions(