Gallery
Gallery copied to clipboard
closeOnSlideClick not work with blueimp-gallery-contain
Hello!
Actually, I found this behavior:
closeOnSlideClick: true not work with blueimp-gallery-contain
Is this a bug or should it be?
Thanks!
It's an implementation detail. 😬
The CSS code applied to images with this class sets the img element dimensions to the full size of the container (even though the actual image is not necessarily covering the whole container):
width: 100%;
height: 100%;
object-fit: contain;
Since the click on the image itself is already reserved to toggle the display of the controls, I'm not sure how to fix this easily unfortunately.