From a3e149b014fc341b959f35a53a05e834c2e69fa9 Mon Sep 17 00:00:00 2001 From: Lucas Dino Nolte Date: Wed, 27 Apr 2022 21:53:18 +0200 Subject: [PATCH] fix: add initial call of draw function to drawLoop helper --- packages/core/src/mechanic-utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/mechanic-utils.js b/packages/core/src/mechanic-utils.js index 63723f60..e62a665d 100644 --- a/packages/core/src/mechanic-utils.js +++ b/packages/core/src/mechanic-utils.js @@ -208,6 +208,8 @@ const drawLoop = (drawingFunction, frameRate = 60) => { raf = window.requestAnimationFrame(draw); } }; + + draw(); }; export {