Skip to content

Commit

Permalink
execute drawAll function only once
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas committed May 10, 2024
1 parent 9c021a8 commit a364186
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,6 @@ document
}
start();
hideInputModal();
setTimeout(() => {
drawAll();
toggle.init(infoBoxes, drawAll);
}, 500);
window.scroll((canvas.width - window.innerWidth) / 2, 0);
toggle.init(infoBoxes, drawAll);
});

0 comments on commit a364186

Please sign in to comment.