fix: resetGrid visibility in puzzle store and hide camera switch on single-cam devices

This commit is contained in:
2026-02-13 06:14:51 +01:00
parent 29682c9a06
commit fa5fa12157
2 changed files with 11 additions and 2 deletions

View File

@@ -118,13 +118,15 @@ export const usePuzzleStore = defineStore('puzzle', () => {
elapsedTime.value = 0;
startTimer();
saveState();
}
function resetGrid() {
const rows = solution.value.length;
const cols = solution.value[0].length;
playerGrid.value = Array(rows).fill().map(() => Array(cols).fill(0));
history.value = [];
moves.value = 0;
} currentTransaction.value = null;
currentTransaction.value = null;
}
function startInteraction() {