PhotoSwipe icon indicating copy to clipboard operation
PhotoSwipe copied to clipboard

Is there a proper way to disable swiping/panning without disabling the zoom?

Open michaelsoellner opened this issue 2 years ago • 4 comments

I've got the problem that some mobile devices are using gestures that interfere with properly swiping in the gallery. My plan is to prevent swiping alltogether for these devices and have them rely on the arrow buttons until i can update my app to account for the gestures.

However I cannot find a way to just disable panning without preventing all pointer event?

michaelsoellner avatar Jul 17 '23 09:07 michaelsoellner

Have you examples for such devices? I'm curious if this may also affect my websites.

arnowelzel avatar Aug 01 '23 11:08 arnowelzel

its most noticable on iOS with the back gesture in my xamarin webapp

michaelsoellner avatar Aug 10 '23 14:08 michaelsoellner

So you have a Xamarin web app and include PhotoSwipe 5 as Lightbox? Interesting.

I guess, the way to go is to create event handlers. I just don't know if an event handler can cancel further processing.

Also see: https://photoswipe.com/events/

arnowelzel avatar Aug 10 '23 14:08 arnowelzel

i already went through them, even the undocumented ones, but none worked

michaelsoellner avatar Aug 10 '23 14:08 michaelsoellner