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

unable to close lightbox in mobile when using skin #383

Open
michaelschulze opened this issue Nov 9, 2022 · 2 comments
Open

unable to close lightbox in mobile when using skin #383

michaelschulze opened this issue Nov 9, 2022 · 2 comments

Comments

@michaelschulze
Copy link

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
Copy link

stale bot commented May 8, 2023

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

@stale stale bot added the wontfix label May 8, 2023
@stale stale bot closed this as completed May 20, 2023
@gingerchew
Copy link
Collaborator

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.

@gingerchew gingerchew reopened this Jul 12, 2023
@stale stale bot removed the wontfix label Jul 12, 2023
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

2 participants