scaron / prettyphoto

prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/
553 stars 281 forks source link

Lightbox left/right arrows skip videos #148

Open kplank opened 9 years ago

kplank commented 9 years ago

I have a prettyPhoto gallery that has both videos and photos. I've hidden the navigation items at the bottom of the lightbox at my client's request, which leaves only the left/right arrows that appear on hover in the lightbox. However, those arrows only appear on photos. When navigating with those arrows, it skips over all videos in the "rotation" and only shows me the images.

If I use the navigation arrows at the bottom of the lightbox, it allows me to navigate through across videos and photos. But the client does not want to show that navigation at the bottom.

Is there a way to take the functionality of the bottom navigation buttons and apply it to the left/right arrows that appear on hover? And to make those buttons appear on all media types, not just photos?