fix(settings/user/color): wrong grid click boundaries check

This commit is contained in:
2025-12-28 23:55:11 +01:00
parent d5ac5e6e4e
commit 4febdad80a

View File

@@ -48,7 +48,7 @@ useScreenClick((x, y) => {
const cellLocalY = relativeY % (CELL_SIZE + SPACING);
if (
rectContains([0, 0, GRID_SIZE, GRID_SIZE], [col, row]) &&
rectContains([0, 0, GRID_SIZE - 1, GRID_SIZE - 1], [col, row]) &&
rectContains([0, 0, CELL_SIZE + 1, CELL_SIZE + 1], [cellLocalX, cellLocalY])
) {
select(col, row);