miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

Page reloads on Mobile #294

Closed ckarpinski closed 5 years ago

ckarpinski commented 5 years ago

I am using the justified gallery on a page and it works great except on mobile when you try to scroll it sorta blinks and takes you back to the top over and over again like it is reloading. I tried turning it off for mobile using this approach - https://github.com/miromannino/Justified-Gallery/issues/281 But that doesnt seem to fix the problem.

Any ideas what is causing this or how to fix it?

URL is here https://www.fstopmagazine.com/groupexhibition.html

ckarpinski commented 5 years ago

I figured it out - I also have a script to make the page reload when it is resized - that had been working to make the grid look right if you happened to resize your browser to the mobile width on desktop (where I had turned off the justified) but for whatever reason it now just makes it endlessly reload.