From cbc4f32536b30b1be13901214e22f20b066eba5e Mon Sep 17 00:00:00 2001 From: Aaron Ge Date: Tue, 9 Jan 2024 16:14:57 -0500 Subject: [PATCH] Update drawCanvas.js --- drawCanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drawCanvas.js b/drawCanvas.js index 04b3809..231c230 100644 --- a/drawCanvas.js +++ b/drawCanvas.js @@ -293,10 +293,10 @@ function drawCoresOnCanvasForTravelingAlgorithm() { let isDraggingTempCore = false; img.onload = () => { - imageNeedsUpdate = false; - drawCores(); canvas.height = img.height; + imageNeedsUpdate = false; + drawCores(); }; function updateImageSource() {