Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes .js didn't trigger #3

Open
yosemite-windows opened this issue Apr 13, 2014 · 2 comments
Open

Sometimes .js didn't trigger #3

yosemite-windows opened this issue Apr 13, 2014 · 2 comments

Comments

@yosemite-windows
Copy link

tried 20 times, 6 out of 20 might get the js initialized and triggered proeprly, but majority time the script can't be triggered, can you help please

@jondcampbell
Copy link

I have a feeling that the way the code works now it will only trigger the panorama when the image finishes loading. If the image is already loaded the js never fires. At least in my tests.

@ghost ghost mentioned this issue May 31, 2014
@skrosoft
Copy link

You just have to replace the line 197 by:

  }).each(function(){
        if (this.complete || this.complete === undefined){ $(this).load(); } //needed for potential cached images
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants