Skip to content

Commit

Permalink
Update drawCanvas.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronge-2020 committed Jan 9, 2024
1 parent 98498c7 commit cbc4f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drawCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ function drawCoresOnCanvasForTravelingAlgorithm() {
let isDraggingTempCore = false;

img.onload = () => {
imageNeedsUpdate = false;
drawCores();
canvas.height = img.height;

imageNeedsUpdate = false;
drawCores();
};

function updateImageSource() {
Expand Down

0 comments on commit cbc4f32

Please sign in to comment.