Prinzhorn / skrollr

Stand-alone parallax scrolling library for mobile (Android + iOS) and desktop. No jQuery. Just plain JavaScript (and some love).
http://prinzhorn.github.io/skrollr/
MIT License
18.53k stars 3.5k forks source link

Content disapears on mobile when using anchor links #789

Open nickels55 opened 8 years ago

nickels55 commented 8 years ago

Here is my sample using only the skrollr.js: http://www.lsac.org/test/index.html

Click on the top anchor link using an iPad or iPhone. The page jumps to the anchor which is lower on the page. However, when the jump happens the content above the anchor seems to disappear. Click on the link on any iphone/ipad browser and you'll see how the user is unable to scroll back up to the top of the page above the anchor link. If I remove skrollr.js this problem goes away and the anchor link works fine where the user can scroll back up to the top of the page after clicking on the link: http://www.lsac.org/test/test2.html

Thanks for any help getting around this problem on mobile devices.

nickels55 commented 8 years ago

Solved by using skrollr-menu script found here: https://github.com/Prinzhorn/skrollr-menu