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

Incorrect work of ZOOM. When scrolling down, the image zoom only bottom section. #4039

Closed
1 of 3 tasks
nikello opened this issue Dec 11, 2020 · 0 comments
Closed
1 of 3 tasks

Comments

@nikello
Copy link

nikello commented Dec 11, 2020

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Swiper Version: 6.3.5.

  • Platform/Target and Browser Versions: All/All.

  • Live Link or JSFiddle/Codepen or website with isssue: https://codepen.io/nikello/pen/PoGGLam

What you did

Scroll down and double click on top section of the image

Expected Behavior

I double click on top section of the image - zoom top section of the image
I scroll down and double click on top section of the image - zoom top section of the image

Actual Behavior

I double click on top section of the image - zoom top section of the image
I scroll down and double click on top section of the image - zoom bottom section of the image!!!

To fix the error, I made a correction to the file swipper-bundle.js (764 row) :
function offset() {
....
var scrollTop = window.scrollY;
var scrollLeft = window.scrollX;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants