Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michaelsoellner opened this issue Jul 17, 2023 · 4 comments

Comments

@michaelsoellner
Copy link

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?

@arnowelzel
Copy link

arnowelzel commented Aug 1, 2023

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

@michaelsoellner
Copy link
Author

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

@arnowelzel
Copy link

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/

@michaelsoellner
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants