You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have an issue caching load event (with autoLoad:true) when using multires panaorama.
The load event fires before the code viewer.on('load'....
If I add little delay with setTimeout in pannellum.js to this line fireEvent('load'); then load event works with following code, but this is not something I want to do.
Is there a way I can rewrite this code so I can hear the load event after I init panorama? How could I attach listener before I actually set pano data to load?
When constructing a viewer with a multires panorama and autoLoad: true, the panorama will be considered loaded before the pannellum.viewer returns. Thus, there is little reason to have an event listener for this. You could accomplish the same thing by just calling your event handler manually with something along the lines of:
Hi, I have an issue caching load event (with autoLoad:true) when using multires panaorama.
The load event fires before the code viewer.on('load'....
If I add little delay with setTimeout in pannellum.js to this line fireEvent('load'); then load event works with following code, but this is not something I want to do.
Is there a way I can rewrite this code so I can hear the load event after I init panorama? How could I attach listener before I actually set pano data to load?
The text was updated successfully, but these errors were encountered: