Browse Source

Fix bug in last commit.

While the last commit prevented a race condition, it also broke the
`updateOnce` function.
pull/1140/head
Matthew Petroff 1 year ago
parent
commit
3d271c83d5
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/js/pannellum.js

+ 4
- 1
src/js/pannellum.js View File

@@ -3075,7 +3075,10 @@ this.setUpdate = function(bool) {
*/
this.updateOnce = function() {
updateOnce = true;
this.setUpdate(true);
if (renderer === undefined)
onImageLoad();
else
animateInit();
return this;
};



Loading…
Cancel
Save