From a6d5cfb7975845502cc139ecfeea13c673de7d55 Mon Sep 17 00:00:00 2001 From: Kenrick Date: Sat, 27 Aug 2022 09:56:13 +0800 Subject: [PATCH] Fix canvas not fully cleared if page zoom is not 100% --- browser/src/board/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/src/board/utils.ts b/browser/src/board/utils.ts index ec9b4ef..049751e 100644 --- a/browser/src/board/utils.ts +++ b/browser/src/board/utils.ts @@ -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) }