Make it possible again to drag a tile into the top left corner
This commit is contained in:
@@ -266,7 +266,7 @@ export function tryMoveTile(g: Grid, from: number, to: number): Grid {
|
|||||||
const tile = g.cells[from]!;
|
const tile = g.cells[from]!;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
to > 0 &&
|
to >= 0 &&
|
||||||
to < g.cells.length &&
|
to < g.cells.length &&
|
||||||
column(to, g) <= g.columns - tile.columns
|
column(to, g) <= g.columns - tile.columns
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user