We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://codesandbox.io/p/devbox/swiper-react-zoom-forked-2yr42c
There's an inconsistency in the zoom behavior when using zoom.in() with different parameter types:
zoom.in()
When passing an Event object, zooming works correctly - it zooms in while maintaining focus on the cursor position (expected behavior)
When passing a number (zoom ratio), the zoom centers on the last clicked position rather than the center of the slider (unexpected behavior)
Reproduction Steps:
Initialize Swiper with zoom module Click anywhere on the slider Call twice swiper.zoom.in(ratio) Observe zoom centers on last clicked position instead of slider center
swiper.zoom.in(ratio)
When providing a number parameter to zoom.in(), the zoom operation should:
Default to the center of the slider container Maintain consistent behavior regardless of previous interactions Match the behavior seen in other zoom implementations where programmatic zoom typically centers
swiper.zoom.in(event)
11.2.6
Chrome
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/devbox/swiper-react-zoom-forked-2yr42c
Bug description
There's an inconsistency in the zoom behavior when using
zoom.in()
with different parameter types:Reproduction Steps:
Expected Behavior
When providing a number parameter to
zoom.in()
, the zoom operation should:Actual Behavior
swiper.zoom.in(event)
→ Zooms to cursor position (correct)swiper.zoom.in(ratio)
→ Zooms to last clicked position on slider (incorrect)Swiper version
11.2.6
Platform/Target and Browser Versions
Chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: