Open the lightbox by double click #350
MuhammadMabrouk
started this conversation in
General
Replies: 1 comment
-
Hi, const lightbox = GLightbox({
lightboxHTML: customLightboxHTML,
slideHTML: customSlideHTML,
touchNavigation: true,
loop: true,
});
const lightBoxLinks = document.querySelectorAll('.glightbox');
lightBoxLinks.forEach(lightboxlink => {
lightboxlink.addEventListener('click', (event) => {
event.preventDefault();
});
lightboxlink.addEventListener('dblclick', (event) => {
event.preventDefault();
lightbox.open();
});
}); But this doesn't work because it disable not the basic clickevent. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to open the lighbox by double click?
Beta Was this translation helpful? Give feedback.
All reactions