You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code on onGestureChange and onGestureEnd doesn't use the gesture position to move the image to that pixel so that the zoom takes place at this specific point, instead of the center of the image. Therefore, the zoom doesn't happen where expected. I can see they're taken into account on the onTouchMove function, but anyway the zoom doesn't honor the fingers position.
Expected Behavior
The pinching gesture zoom in the image on this specific point.
Actual Behavior
The image zoom in focusing on the center of the image when using the fingers.
Check that this is really a bug
Reproduction link
https://swiperjs.com/demos/400-zoom/core
Bug description
The code on onGestureChange and onGestureEnd doesn't use the gesture position to move the image to that pixel so that the zoom takes place at this specific point, instead of the center of the image. Therefore, the zoom doesn't happen where expected. I can see they're taken into account on the onTouchMove function, but anyway the zoom doesn't honor the fingers position.
Expected Behavior
The pinching gesture zoom in the image on this specific point.
Actual Behavior
The image zoom in focusing on the center of the image when using the fingers.
Swiper version
8.4.5
Platform/Target and Browser Versions
Safari@iPhone 12 Pro Max
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: