biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.03k stars 228 forks source link

unable to close lightbox in mobile when using skin #383

Open michaelschulze opened 1 year ago

michaelschulze commented 1 year ago

Hi there, I think there is a bug, when using a skin to style the lightbox. That's what is happening in my environment (latest version of glightbox):

When applying a skin in the javascript-init (with selector) the close button disappears and the #glightbox-body layer is covered by multiple layers (until .gslide-inner-content) in mobile mode. That way the lightbox cannot be closed on mobile devices anymore. Desktop still works because you can click on the layer (close button disappears here too).

example code: const lightbox3 = GLightbox({ selector: '.modelGraphic', skin: 'modelDimenLb' });

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

gingerchew commented 1 year ago

The skin option is definitely in the Advanced section of the settings. I would personally discourage use of it unless you have a really good understanding of how it works. I do not personally. If you NEED to use skin, then we can look more into it, but we would need a reduced test case in a CodePen or something to really dig into it.