@
@
@eashla2021-01-13 17:57:53
JavaScript
@eashla, 2021-01-13 17:57:53

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

1 answer(s)
V
Vladimir Druzhaev, 2021-01-15
@OtshelnikFm

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 question

Ask a Question

731 491 924 answers to any question