Browse Source

Fix 'setTimeout' when calling processNextTile

setTimeout(f(x), ms) executes function immediately and acts as if there is no setTimeout at all.
pull/398/head
Tortila90 7 years ago
committed by GitHub
parent
commit
cf3b98eb35
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/libpannellum.js

+ 1
- 1
src/js/libpannellum.js View File

@@ -601,7 +601,7 @@ function Renderer(container) {
// Only process one tile per frame to improve responsiveness
for (i = 0; i < program.currentNodes.length; i++) {
if (!program.currentNodes[i].texture) {
setTimeout(processNextTile(program.currentNodes[i]), 0);
setTimeout(processNextTile, 0, program.currentNodes[i]);
break;
}
}


Loading…
Cancel
Save