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

Firefox 42: TypeError: _currPanBounds is undefined @ photoswipe.js:1088:3 #1022

Open
manuel-84 opened this issue Nov 17, 2015 · 11 comments
Open

Comments

@manuel-84
Copy link

on other browsers all is working as expected
you can view the problem live at cyclingthetimes dot com (with minified files)

@mjau-mjau
Copy link

A bit hard to diagnose with such little info and a minified photoswipe, when the issue is likely related to your custom instantiation of Photoswipe and/or the html structure. This issue is does not occur anywhere else.

If you can reproduce the issue on Codepen, it can be diagnosed properly.

@manuel-84
Copy link
Author

this is the pen where i can see the same issue: http://codepen.io/anon/pen/NGJrQo

@mjau-mjau
Copy link

Confirm. Sorry, I really can't identify why you are getting this bug specifically for this example, in Firefox.

@dimsemenov
Copy link
Owner

What exactly to do to replicate the issue? And on what exactly OS do you test it? For some reason I'm not getting any errors in FF42, not on Mac, not on Windows.

@manuel-84
Copy link
Author

On Windows 8.1 and Firefox 42 when I click the button to load PhotoSwipe it loads the image but the interface is invisible and inactive, I can't zoom or close

@mjau-mjau
Copy link

I can reproduce the error on Mac/Firefox also. It happens randomly, and I can't see what the cause could be. I suspect it's related to multiple instances of Photoswipe. Once the error occurs, PS interface becomes unresponsive.

http://codepen.io/anon/pen/NGJrQo
codepen

@manuel-84
Copy link
Author

I tried with Firefox 44 (dev. edition) and seems working fine :/
@mjau-mjau I can see the same problem with one instance too (you can delete one from the pen to try), and I also tried without jquery

@dimsemenov
Copy link
Owner

Please check if you can replicate issue on this pen http://codepen.io/dimsemenov/full/Oyqwav/ , maybe it's related to how images are cached in FF.

@mjau-mjau
Copy link

Please check if you can replicate issue on this pen http://codepen.io/dimsemenov/full/Oyqwav/ , maybe it's related to how images are cached in FF.

I can't seem to reproduce the error in the above pen. Interesting.

@manuel-84
Copy link
Author

@dimsemenov yes, I can replicate the issue in your pen and I also tried replacing the image links with placekittens+randomquery with same result

@smm1378
Copy link

smm1378 commented Sep 8, 2023

very old ! but for any one need :
problem will solve with showAnimationDuration:0 and hideAnimationDuration:0 in options . example :
let options = { index: 0, showAnimationDuration:0, hideAnimationDuration:0, modal: true }; // Initializes and opens PhotoSwipe Gallery_Core = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options);

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

4 participants