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

Zoom is triggered on a slide with image but without swiper-zoom-container or swiper-zoom-target #4535

Closed
acromatica opened this issue May 9, 2021 · 0 comments

Comments

@acromatica
Copy link

  • Swiper Version: v6.5.9
  • Platform/Target and Browser Versions: macOS 11.3 (20E232) CHROME Version 90.0.4430.93 (Official Build) (x86_64)

What You Did

I added a swiper with zoom enabled and with a slide that has an image but doesn't have "zoomable" markup.
The slide still gets zoomed in when I double tap it even without swiper-zoom-container or swiper-zoom-target. In the codepen below it's the second slide:

https://codepen.io/acromatica/pen/XWMbVeO

Expected Behavior

Zoom in shouldn't be triggered when there's no swiper-zoom-container or swiper-zoom-target around the image.

Actual Behavior

Zoom in gets triggered even though there's no swiper-zoom-container or swiper-zoom-target around the image.

@acromatica acromatica changed the title Zoom is triggered in a slide with image but without swiper-zoom-container or swiper-zoom-target Zoom is triggered on a slide with image but without swiper-zoom-container or swiper-zoom-target May 9, 2021
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

1 participant