Re-enable focusing tiles in 1:1 calls
This commit is contained in:
parent
247ed95976
commit
7ad84de9c2
1 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ function getTilePositions(
|
||||||
layout: Layout
|
layout: Layout
|
||||||
): TilePosition[] {
|
): TilePosition[] {
|
||||||
if (layout === "freedom") {
|
if (layout === "freedom") {
|
||||||
if (tileCount === 2 && !hasPresenter) {
|
if (tileCount === 2 && !hasPresenter && focusedTileCount === 0) {
|
||||||
return getOneOnOneLayoutTilePositions(
|
return getOneOnOneLayoutTilePositions(
|
||||||
gridWidth,
|
gridWidth,
|
||||||
gridHeight,
|
gridHeight,
|
||||||
|
@ -657,7 +657,7 @@ function reorderTiles(tiles: Tile[], layout: Layout) {
|
||||||
if (
|
if (
|
||||||
layout === "freedom" &&
|
layout === "freedom" &&
|
||||||
tiles.length === 2 &&
|
tiles.length === 2 &&
|
||||||
!tiles.some((t) => t.presenter)
|
!tiles.some((t) => t.presenter || t.focused)
|
||||||
) {
|
) {
|
||||||
// 1:1 layout
|
// 1:1 layout
|
||||||
tiles.forEach((tile) => (tile.order = tile.item.isLocal ? 0 : 1));
|
tiles.forEach((tile) => (tile.order = tile.item.isLocal ? 0 : 1));
|
||||||
|
@ -999,7 +999,7 @@ export function VideoGrid({
|
||||||
|
|
||||||
let newTiles = tiles;
|
let newTiles = tiles;
|
||||||
|
|
||||||
if (tiles.length === 2 && !tiles.some((t) => t.presenter)) {
|
if (tiles.length === 2 && !tiles.some((t) => t.presenter || t.focused)) {
|
||||||
// We're in 1:1 mode, so only the local tile should be draggable
|
// We're in 1:1 mode, so only the local tile should be draggable
|
||||||
if (!dragTile.item.isLocal) return;
|
if (!dragTile.item.isLocal) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue