diff --git a/src/lib/MazeController.ts b/src/lib/MazeController.ts index 36c880d..9c5021a 100644 --- a/src/lib/MazeController.ts +++ b/src/lib/MazeController.ts @@ -150,6 +150,7 @@ export class MazeController { if (this.lastEvent === "generate") this.shouldSweep = false; this.lastEvent = "solve"; this.drawer.mazeEvent = "solve"; + await this.stopMazeAnimation(); const [start, end] = this.randomStartEnd();