Skip to content

Commit

Permalink
another small bug XD
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-souiyeh authored May 22, 2024
1 parent 8f52b4e commit 8d966aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Events/Canvas.EventListeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ export async function addCanvasEventListeners(canvas: HTMLCanvasElement) {
globals.maxDepth = -1;
mouseDown = true;
}
if (globals.addWalls && globals.startAlgo === false && globals.animatePath === false &&
globals.reset === false) {
mouseDown = true;
}
}
else {
const cell = globals.grid.at(x, y);
Expand Down

0 comments on commit 8d966aa

Please sign in to comment.