lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.19k stars 1.76k forks source link

image duplicated #572

Closed jayvicks86 closed 6 years ago

jayvicks86 commented 7 years ago

Hi guys, I've now been racking my brains for a couple of hours with no joy any help is appreciated. I click an image in my gallery, lightbox takes effect, however, each image is being duplicated, and I can't find where in the code it is happening? Fairly sure it's somewhere in the js but I can't find where? Anyone had this problem and know how to sort it, please?

bgardineer4 commented 7 years ago

I have the same problem. No luck yet.

bgardineer4 commented 7 years ago

Okay, for me it looks like Lightbox was conflicting with Unslider, a jQuery slider plugin I'm using. Disallowing infinite sliders solved the issue. After scouring some other forums, it looks like a few others have had this problem with various slider plugins. I imagine it has something to do with how linking is handled for the edge photos of infinite sliders. I actually wasn't seeing duplicates of my interior images, just the exterior ones (e.g. if I had three photos in my infinite slider and tried displaying them in a Lightbox gallery, images 1 and 3 were duplicated, but image 2 was not).

lokesh commented 6 years ago

Closing out old issues. Hopefully everyone made progress on their issue.

schiavo commented 6 months ago

Same issue occurs when using lightbox with bxslider. Setting infiniteLoop: false fixes the issue.