Browse Source

Avoid race condition between `updateOnce()` and `setUpdate(true)`.

pull/1140/head
Matthew Petroff 1 year ago
parent
commit
3aab61fd2a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/js/pannellum.js

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

@@ -3058,6 +3058,7 @@ this.getRenderer = function() {
this.setUpdate = function(bool) {
update = bool === true;
if (update) {
updateOnce = false;
if (renderer === undefined)
onImageLoad();
else


Loading…
Cancel
Save