swiper icon indicating copy to clipboard operation
swiper copied to clipboard

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

Open broox opened this issue 1 year ago • 1 comments

Check that this is really a bug

  • [X] 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

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

Would you like to open a PR for this bug?

  • [X] I'm willing to open a PR

broox avatar Feb 10 '24 15:02 broox

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

matiasmenker avatar Feb 27 '24 17:02 matiasmenker