PhotoSwipe icon indicating copy to clipboard operation
PhotoSwipe copied to clipboard

There is a way to trigger something when we click on the image to zoom in?

Open julesvaulont opened this issue 3 years ago • 2 comments

Hello, There is a way to trigger something when we click on the image to zoom in? I would love to remove arrows when we are "zooming" on the image.

julesvaulont avatar Jun 30 '22 08:06 julesvaulont

PhotoSwipe gets class pswp--zoomed-in when zoomed.

You can also listen for event zoomPanUpdate or use click actions - https://photoswipe.com/click-and-tap-actions/

dimsemenov avatar Jul 01 '22 03:07 dimsemenov

Thank you so much for your answer and great lib!

julesvaulont avatar Jul 01 '22 07:07 julesvaulont