Is there a way to disable clicking on .lg-img-wrap?
I have attempted various solutions, but none seem to work with lightgallery.
Attempt 1
$(".lg-img-wrap").children().unbind('click');
Attempt 2
$(".noclick").click(function(e) {
e.preventDefault();
e.stopPropagation();
});
Attempt 3
pointer-events:none //added to a CSS property
I want to prevent the light gallery from closing when the user clicks outside of the image.
A black margin is visible when the image ratio does not match the screen size. Please refer to the image below for clarification. https://i.sstatic.net/YHHxg.png
The light gallery I am using can be found at: https://github.com/sachinchoolur/lightGallery