Answer the question
In order to leave comments, you need to log in
How to add a function to close an image (lightbox) by vertical swipe down?
Hello!
There is a website portfolio.annakumantsova.com . On it, when you open a photo without going to another page, the slider with the album in the lightbox starts loading. Everything is fine, but there is not enough nativeness for the mobile application, namely, swipe down to close the image, like here: https://photoswipe.com/
I’ll make a reservation right
away - I’m not a programmer and code operations are difficult for me, but according to the instructions I can manage. Maybe I was looking badly or I don’t understand something - I couldn’t figure it out on my own and therefore I’m writing here.
My suspicions that this cannot be done due to the fact that everything is formed on the fly through Java, but these are just my guesses.
I would be grateful if you give advice on how to implement this while maintaining the existing functionality.
Answer the question
In order to leave comments, you need to log in
js swipe event close - in google.
If it’s quick: you
catch an event
, you bang a modal, a lightbox, or whatever you have.
Look in the docs for your js - as a rule, the destroy method in the modal or lightbox script is
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question