Before you ask please READ THIS

Pinch Zoom On Mobile

in Photon Posts: 14
Hi,
I'm using Photon Version : 1.3.7 and I have an issue that I can't solve.

I have activated lightGallery zoom control, but on mobile, when I try to pinch the screen to zoom in the picture, it jumps instantaneously to a full zoom. It's not following gradually my fingers.

I've already removed "maximum-scale=1,user-scalable=no" from my header.php file like it's explained in an other post.

How can I solve this ?
Thank you

Comments

  • AirAir
    Posts: 10,970
    Hello :-)

    I believe scripts for lightbox in Photon could be from the "previous era", and some solutions may not work as you would like.

    Could you share a live link, so I could see in action this, and maybe advise something?

    With kind regards.
  • Posts: 14
    Hi,
    Here is a link to the gallery that doesn't work properly.
    https://hatfab.site/kristian_autain/album/instagram/
    Thank you
  • AirAir
    Posts: 10,970
    Hey :-)

    It seems that the version of lightgallery used in Photon doesn't work well with pinch zoom.
    You could try to replace lightgallery on your own.

    It is hard to say how many differences there are in the implementation between version used in the Photon and current version from https://www.lightgalleryjs.com/

    With kind regards.
  • Posts: 14

    Thank you for the information. Can you explain how to replace lightgallery on my own ?
    What is the way, witch files should I replace ?

    Thanks
  • AirAir
    Posts: 10,970
    Sorry, I can not help you with this.
    Like I have said it is impossible to tell without actually doing it.
    It would require some development time.

    However, someone with web development knowledge should be able to do it in a few hours(work + tests).

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!