Make it possible again to drag a tile into the top left corner

This commit is contained in:
Robin Townsend 2023-06-18 00:28:08 -04:00
parent afbcea7b66
commit 3e56d0a656

View file

@ -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
) {