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

Images are not re centered when zooming out #380

Open
negtrick opened this issue Aug 8, 2022 · 0 comments
Open

Images are not re centered when zooming out #380

negtrick opened this issue Aug 8, 2022 · 0 comments

Comments

@negtrick
Copy link

negtrick commented Aug 8, 2022

Hi,

I use "nanogalery2" on my website. After zooming in (and eventually paning the image or not), the image is not re centered when zooming out. So, when zooming out, image may disappear.

I would like the image would be re centered when zooming out.
Can anyone help me find a solution to solve that ?

You can see the issue with any demo on the owner website:
=> https://nanogallery2.nanostudio.org/#nanogallery/nanogallery/people/people%2FPhoto%20by%20Jurica%20Koleti%C4%87

I have created a codepen that reproduce the problem with the original code in order to test solutions:
https://codepen.io/negtrick/pen/RwMJJMQ

You can see the behavior I need here ( image centered when zooming out) here (click on "Active the fullscreen Slideshow"): https://www.jqueryscript.net/demo/Fullscreen-Product-Slideshow-with-Image-Zoom-Pan-Ap-Image-Fullscreen/

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

1 participant