From 3e56d0a656312760644501e040600869bdf5f286 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Sun, 18 Jun 2023 00:28:08 -0400 Subject: [PATCH] Make it possible again to drag a tile into the top left corner --- src/video-grid/model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video-grid/model.ts b/src/video-grid/model.ts index 6ca352e..b2d7984 100644 --- a/src/video-grid/model.ts +++ b/src/video-grid/model.ts @@ -266,7 +266,7 @@ export function tryMoveTile(g: Grid, from: number, to: number): Grid { const tile = g.cells[from]!; if ( - to > 0 && + to >= 0 && to < g.cells.length && column(to, g) <= g.columns - tile.columns ) {