From cc2c002a4a74859789adf34643826beda930eb90 Mon Sep 17 00:00:00 2001 From: Gator Date: Mon, 26 Dec 2022 17:20:03 +0100 Subject: [PATCH] missing stop. toggles --- src/components/CanvasBoard.vue | 3 ++- src/stores/index.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/CanvasBoard.vue b/src/components/CanvasBoard.vue index cff9adb..1eedb8f 100644 --- a/src/components/CanvasBoard.vue +++ b/src/components/CanvasBoard.vue @@ -164,13 +164,14 @@ ); const newBoard = picToBoard(resized.data, store.board); store.board.grid = Object.freeze(newBoard); + store.toggleStop(); }; const reset = () => { store.toggleStop(); store.board.grid = null; store.renderer.reset(); - store.reset = false; + store.toggleReset(); };