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

HELP ! image centers vertically out ouf the viewport on ios safari #1286

Open gargovan opened 7 years ago

gargovan commented 7 years ago

Hi,

I've installed Photoswipe on my website (http://garketch.com/gallery.html). It works great on desktop (firefox) and android (chrome) but not on mobile apple devices (tried Iphone CE and Ipad mini, with Safari). When I open an image, it displays out of the viewport, as it centers itself vertically not on the viewport but on the whole page.

I've tried to view photoswipe.com with the same devices and it displays nicely.

I tried saving the page photoswipe.com/index.html and uploading it to my server and I've got the same problem ! Nice display on desktop and android but not on apple mobile.

(test visible at this adress : http://garketch.com/swpo.htm)

Is there requirement about the server ?

What did I miss ?

Please help !

ghost commented 7 years ago

@gargovan Please consider taking your question to StackOverflow