Skip to content

Commit

Permalink
fix(zoom): fix zoom panning in RTL
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Jul 15, 2021
1 parent e16e3b7 commit 08bcd05
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/zoom/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ const Zoom = {
gesture.slideWidth = gesture.$slideEl[0].offsetWidth;
gesture.slideHeight = gesture.$slideEl[0].offsetHeight;
gesture.$imageWrapEl.transition(0);
if (swiper.rtl) {
image.startX = -image.startX;
image.startY = -image.startY;
}
}
// Define if we need image drag
const scaledWidth = image.width * zoom.scale;
Expand Down

0 comments on commit 08bcd05

Please sign in to comment.