Gallery icon indicating copy to clipboard operation
Gallery copied to clipboard

closeOnSlideClick not work with blueimp-gallery-contain

Open leadenhead opened this issue 4 years ago • 1 comments

Hello! Actually, I found this behavior: closeOnSlideClick: true not work with blueimp-gallery-contain Is this a bug or should it be? Thanks!

leadenhead avatar Feb 22 '21 11:02 leadenhead

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.

blueimp avatar Sep 25 '21 02:09 blueimp