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

Long pressing on a zoomable slide breaks zoom interactions for that slide #7304

Open
6 tasks done
broox opened this issue Feb 10, 2024 · 2 comments · May be fixed by #7830
Open
6 tasks done

Long pressing on a zoomable slide breaks zoom interactions for that slide #7304

broox opened this issue Feb 10, 2024 · 2 comments · May be fixed by #7830

Comments

@broox
Copy link
Contributor

broox commented Feb 10, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://swiperjs.com/demos/400-zoom/core

Bug description

On mobile, if you long press an image on a given slide (e.g. to copy or save the image), you can no longer zoom in and out of that slide until you leave the slide and come back.

Expected Behavior

You should be able to long press on an image to copy/save it, and continue to interact with the slide.

Actual Behavior

Zoom gets stuck in the last state.

Swiper version

11.0.6

Platform/Target and Browser Versions

iOS Chrome

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@matiasmenker
Copy link

matiasmenker commented Feb 27, 2024

Any update on this ? Did you try to set the preventInteractionOnTransition={true} ?

@broox
Copy link
Contributor Author

broox commented Dec 15, 2024

@matiasmenker preventInteractionOnTransition: true does not seem to help. and actually, the bug has slightly changed from my initial report. if i long press an image, it seems to get stuck in a multi-touch state where it only allows you to zoom in/out with a single finger. you cannot swipe to the next slide.

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

Successfully merging a pull request may close this issue.

2 participants