Skip to main content
New Participant
May 31, 2023
Question

PDF Embed API using Light Box embed on mobile, when screen is tapped, the pdf closes - any fixes?

  • May 31, 2023
  • 1 reply
  • 212 views

I finally have my embedded pdf working using the light box embed on my wordpress website. I chose light box because when viewed on mobile, I needed the user to be able to pinch zoom in and out to see the small text, and this works well.  However, if the user should tap the side of the screen, it assumes the user is "exiting" the light box and the lightbox/pdf closes. When I refresh the screen, the pdf isn't reloading/reopening.

 

Is there any way to "ignore" accidental screen taps and always have the lightbox/pdf open?

 

The webpage this pdf is viewed on isn't linked to on my website, so they won't necessarily be able "go back" to previous page.

This topic has been closed for replies.

1 reply

New Participant
September 29, 2023

I have the same issue.  

When the user taps the viewer outside the pdf document the viewer close.
Is there a way to close the lightbox only by using the close button?