Skip to content

Commit

Permalink
fix: add initial call of draw function to drawLoop helper
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdinonolte committed Apr 27, 2022
1 parent fedf51f commit a3e149b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/mechanic-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ const drawLoop = (drawingFunction, frameRate = 60) => {
raf = window.requestAnimationFrame(draw);
}
};

draw();
};

export {
Expand Down

0 comments on commit a3e149b

Please sign in to comment.