You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
document.addEventListener('click', function (e) {
const target = e.target;
// because the .ginner-container isn't 100vh anymore we can click the slider itself
if (target.classList.contains('gslider')) {
document.querySelector('.gclose').click();
}
}, false);
Describe the bug
If
closeOnOutsideClick
is enabled it works perfectly on a normal desktop. On mobile this option just does nothingAre you able to reproduce the bug in the demo site
Yes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The lightbox should close when clicking outside of the image if
closeOnOutsideClick
is enabled on mobile as wellScreenshots
If applicable, add screenshots to help explain your problem.
Desktop:
Smartphone:
The text was updated successfully, but these errors were encountered: