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

Intermittent Displacement Issue During Image Zoom: Sudden Shift Sideways During Pinch-to-Zoom on Mobile Devices #7455

Open
5 of 6 tasks
SerhiiStepanenko opened this issue Apr 10, 2024 · 2 comments
Labels
React t0ggles Linked to the t0ggles task

Comments

@SerhiiStepanenko
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/eager-leakey-3tll5r?file=%2Fsrc%2FModalSlider.js%3A16%2C21

Bug description

When attempting to zoom in on an image using the pinch-to-zoom gesture with two fingers on a mobile device, the image initially zooms smoothly. However, at a certain point during the zoom, despite the gesture continuing smoothly, the image suddenly and sharply shifts to the side. This displacement seems random and unpredictable, causing issues with precision in image scaling control.

PZZH8587.MP4

Expected Behavior

It is expected that the image will smoothly increase in size according to the user's finger movements, without any sudden or unexpected shifts to any side. The pinch-to-zoom gesture should provide stable and predictable scaling, allowing the user to precisely control the zoom level of the image.

Actual Behavior

Currently, while zooming in on an image using a two-finger pinch gesture, the image enlarges smoothly until, at a certain moment, it experiences a sharp and unexpected shift to the side. This shift occurs without any apparent reason, disrupting the expected smoothness and precision of zoom control. This behavior is observed across various mobile devices and represents a significant deviation from the expected user experience.

Swiper version

11.1.1

Platform/Target and Browser Versions

iOS, Safari

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
@nolimits4web
Copy link
Owner

t0ggles-create swiper

Copy link

t0ggles bot commented Apr 25, 2024

Task nolimits4web/SWIPER-95 was created

t0ggles task SWIPER-95

@t0ggles t0ggles bot added the t0ggles Linked to the t0ggles task label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
React t0ggles Linked to the t0ggles task
Projects
None yet
Development

No branches or pull requests

2 participants