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
zoom.in function sets an unexpected transform3d value to the .swiper-zoom-container element, if the previous scale value is greater than 1 and the position of the image is not centered.
Expected Behavior
The origin of the image should be preserved after zoom.in function is called, as if transform-origin was center;
Actual Behavior
Reproduction
Click the "zoom in" button once.
Drag the image randomly to locate it out of the center.
Click the "zoom in" button again.
zoom.in function sets the position unexpectedly. The origin is not centered.
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-zoom-forked-w4jlgg
Bug description
zoom.in
function sets an unexpectedtransform3d
value to the.swiper-zoom-container
element, if the previous scale value is greater than 1 and the position of the image is not centered.Expected Behavior
The origin of the image should be preserved after
zoom.in
function is called, as iftransform-origin
wascenter
;Actual Behavior
Reproduction
zoom.in
function sets the position unexpectedly. The origin is not centered.zoom-in.mp4
Swiper version
11.2.4
Platform/Target and Browser Versions
Chrome, Safari, Firefox
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: