Open davidtgq opened 8 years ago
I encountered similar problem when using photoswipe with swiper.js
I had a similar problem with Slick too... And the only fix I figured out for now is use this timeout function in "unbindEvents" listener:
setTimeout(function() {
if ($('.pswp--open').length)
gallery.destroy();
}, 500);
I'm experiencing a problem that seems to be reproduced randomly after closing Photoswipe when there is more than one image in the Slick carousel. Visually, the effect is that Photoswipe closes (disappears without any animation), then the right side of the page changes again to black with last photo viewed in Photoswipe visible, then the black background fades to transparent but seems to be still there (it prevents any buttons from being clicked).
In case it's relevant, the Photoswipe open animation don't behave like the demos either - it doesn't zoom in from the thumbnail, it just simply fades in from the center of the page.
Image of the page after problem occurs: https://i.imgur.com/a4XEMxU.png
Here is my implementation using Slick and Photoswipe together: