dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.18k stars 3.31k forks source link

Clicking on share links make the image zoom #1344

Open shmdhussain opened 7 years ago

shmdhussain commented 7 years ago

Go to photoswipe.com and click sharing and click on any list item in mobile

which will take you to the corresponding sharing link, that is , it opens the new window in browser,

and also making the zoom in image

kevinsfamouschilli commented 6 years ago

Also having this issue.

On mobile, once a share button is clicked (download, facebook share etc...), the image is found to be fully zoomed in upon closing the share window/tab and returning back to the page.

Issue exists with both Android Chrome and iOS Safari.

acwolff commented 6 years ago

I could solve this problem with the fix discussed here: https://github.com/dimsemenov/PhotoSwipe/issues/1198 see for example this PhotoSwipe album: https://andrewolff.jalbum.net/Rota_Vicentina_PS/index.html

kevinsfamouschilli commented 6 years ago

Thank you @acwolff, this fix worked for me too.

I have attached raw and minified JS files which incorporate the fix for anyone having the same issue.

Photoswipe JS with Zoom on Share Fix.zip

KOBAYASHI-Kazuki commented 6 years ago

I was bothered by the same problem, but since I found this thread, thanks to everyone I could solve successfully. Thank you very much. From Japan, with love :)