Skip to content

Commit

Permalink
add clearRect for renderGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
fulcanellee committed Jul 16, 2024
1 parent 8e5330d commit 6b20d28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pattern-lock/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ class PatternLock {
// Render the grid to the canvas
renderGrid() {
this.ctx.fillStyle = this.themeState.colors.bg;
this.ctx.clearRect(0,0, this.dimens.width, this.dimens.height);
this.ctx.fillRect(0, 0, this.dimens.width, this.dimens.height);

// Draw all the nodes
Expand Down

0 comments on commit 6b20d28

Please sign in to comment.