Skip to content

Commit

Permalink
fixed reinitialize bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bgstaal committed Nov 23, 2023
1 parent 41bc364 commit fb6d717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ else
function init ()
{
// add a short timeout because window.offsetX reports wrong values before a short period
initialized = true;

setTimeout(() => {
setupScene();
setupWindowManager();
Expand Down

0 comments on commit fb6d717

Please sign in to comment.