Skip to content

Commit

Permalink
Fix canvas not fully cleared if page zoom is not 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
kenrick95 committed Aug 27, 2022
1 parent 8e48dab commit a7bf25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/board/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ export function drawMask(board: Board) {
}

export function clearCanvas(board: Board) {
board.context.clearRect(0, 0, board.canvas.width, board.canvas.height)
board.context.clearRect(0, 0, Board.CANVAS_WIDTH, Board.CANVAS_HEIGHT)
}

0 comments on commit a7bf25e

Please sign in to comment.