Fix tiles enlarging to the wrong place on mobile
This commit is contained in:
parent
82ac775124
commit
374c68e3c0
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ const findLast1By1Index = (g: Grid): number | null =>
|
|||
findLastIndex(g.cells, (c) => c?.rows === 1 && c?.columns === 1);
|
||||
|
||||
const row = (index: number, g: Grid): number => Math.floor(index / g.columns);
|
||||
const column = (index: number, g: Grid): number => index % g.columns;
|
||||
const column = (index: number, g: Grid): number =>
|
||||
((index % g.columns) + g.columns) % g.columns;
|
||||
|
||||
const inArea = (
|
||||
index: number,
|
||||
|
|
Loading…
Add table
Reference in a new issue