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

Cannot navigate when zoomed into an image on mobile. #171

Closed
Don404 opened this issue Apr 28, 2020 · 7 comments
Closed

Cannot navigate when zoomed into an image on mobile. #171

Don404 opened this issue Apr 28, 2020 · 7 comments
Assignees
Labels

Comments

@Don404
Copy link

Don404 commented Apr 28, 2020

Hello and thank for your amazing work!

I found something that I think is worth mentioning. When I enter your website https://simplelightbox.com/ and open an image from my mobile phone the zoom works perfectly, however after the image is zoomed in, it can't navigate properly. Every second touch returns the image to the initial place of zoom.

In other words, if I zoom in the centre of the image and I want to navigate to the corners I get returned in the centre on my second touch.

I was wondering, could this be fixed?

@andreknieriem
Copy link
Owner

Hey, can you tell me on which phone you are and which browser? I can see a problem, that the image moves a little bit when pinching. I will take a look!

@andreknieriem andreknieriem self-assigned this Apr 29, 2020
andreknieriem pushed a commit that referenced this issue Apr 29, 2020
@andreknieriem
Copy link
Owner

Fixed

@Don404
Copy link
Author

Don404 commented Apr 30, 2020

Hello and thank you for your quick response. I am using iPhone with Safari and the problem remains. I will try to make a recording so you can see the exact behaviour I am talking about.

I am also making the same test from Samsung with Chrome. And the problem is the same.

Here is an example video recording of the problem:

https://streamable.com/7qdv8e

When I zoom in the centre of the image and try to go to the corners every second touch resets my position to the initial spot where I zoomed.

@andreknieriem andreknieriem reopened this Apr 30, 2020
@andreknieriem
Copy link
Owner

No need to. A user posted a gif here: #168

@andreknieriem
Copy link
Owner

Ok the bug was on the github page. I've loaded simple-lightbox.js 2.0.0 on that page. Now it works. Please reload sometimes or open with incognito tab.

@andreknieriem
Copy link
Owner

Ok now closed.

@Don404
Copy link
Author

Don404 commented Apr 30, 2020

Thank you very much!! Now it works like a charm.

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

No branches or pull requests

2 participants