biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.03k stars 228 forks source link

moreText link closes lightbox instead of revealing text on devices >768px in width #435

Open geomaedr opened 1 year ago

geomaedr commented 1 year ago

If an image description is used in combination with the moreText feature, a click on "See more" results in closing the lightbox instead of revealing the hidden text. This happens for touch devices greater than 768px in width.

It can be reproduced on this demo site - section "Images with Description".

Steps to reproduce the behavior:

  1. Go to the demo page using a suitable device or dev tools (> 768px device width).
  2. Scroll to the section "Images with Description"
  3. Click on the image with the cat
  4. Click on "See more"
  5. The lightbox closes instead of revealing the text after clicking "See more"

The text should show instead of the lightbox closing.

GlightboxIssueSeeMoreOnTablet

Desktop:

geomaedr commented 1 year ago

See also #370