Merge branch 'grid-interactions' into livekit-experiment

This commit is contained in:
Robin Townsend 2023-06-18 11:45:43 -04:00
commit 65f390e2e5

View file

@ -690,8 +690,13 @@ export function promoteSpeakers(g: Grid) {
for (let j = 0; j < 10; j++) { for (let j = 0; j < 10; j++) {
const to = Math.floor(Math.random() * firstPageEnd); const to = Math.floor(Math.random() * firstPageEnd);
const toCell = g.cells[to]; const toCell = g.cells[to];
if (toCell === undefined || (toCell.columns === 1 && toCell.rows === 1)) if (
toCell === undefined ||
(toCell.columns === 1 && toCell.rows === 1)
) {
moveTile(g, from, to); moveTile(g, from, to);
break;
}
} }
} }
} }