diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 21d2af9..059ba68 100644 --- a/src/index.js +++ b/src/index.js @@ -119,6 +119,8 @@ RAPIER.init().then(() => { objElement.style.width = `${objSize.x}px`; objElement.style.height = `${objSize.y}px`; + eventQueue.free(); + setTimeout(mainLoop, STEP_MS); }; |