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
Scroll to anchor in URL not working on mobile #4546
Comments
Additionally I have noticed that events like afterLoad and afterSlideLoad and not fired consistently on mobile too. I had some loading div covering the content to hide the jerky motion of scrolling deep to content and then hide the div when events are firesd. While this worked on desktop, on iPhone the loading div would never get removed since afterLoad is never fired. 😞 |
Try to see if you experience the same issue if you use lazy loading for the images: Replace the If you still do, try removing all images and see if it works. If you still do, try removing half the sections or a big number of them. If you still do, try removing scrollHorizontally. If you still do, try replacing fullpage.extensions.min.js for fullpage.min.js If you still do, try using Let's see if we can isolate the issue :) |
I have the same issue for my page. When opening the URL on mobile with an anchor, first section opens and replaces the previous anchor. Will do as suggested and post results. Since i am not using lazy load by fullpage JS (i combined fullpage JS with swiper where i use lazy loading), I am not sure it is directly related to lazy loading. fullpage JS init options:
|
The scroll to anchor will only start once all the page is fully loaded. |
The described behaviour is not working for me on mobile. Page fully loaded, no scroll started. Tell me if you checked, i will remove the link then. |
I can confirm that I have the same issue as @JHG-media. I also noticed that afterLoad event never fires on mobile, so this could be related. But demo at https://alvarotrigo.com/fullPage/#page2 works fine ... I have all images lazy loaded but it doesn't help. |
That's weird, I cannot reproduce the issue on the callbacks demo: I used Safari, Chrome, and Firefox. All working fine. Can you try running it on your phones and see if you get any of the problems you mention?
Here's a video of the demo running on a real device on Browserstack.com: anchor-scroll.mp4 |
Can you try to isolate the issue from any possible external code that might be interfering with fullpage.js? |
I will narrow it down further, but no time today. At the weekend i will try to give you detailed information. |
Awesome! Thanks! 👍 |
I have a landing page and a pretty big subpage built with fullPage.js, with links from landing page leading to certain sections / slides of subpage using anchors like #section2/slide4
While this works on desktop and on iPad (sometimes it doesn't on tablet) it doesn't work on phone, just the first section is opened.
It seems this depends on timing, if it takes too long to render a page it then wont scroll to the linked section. It worked for some time and now in most cases it just won't. I have tested many times and I can't get it to scroll on load time (when page is loaded).
If I then, after the page is loaded, add the anchor to the url again,it does scroll, but with the link from external site beahviour is very unpredictable.
The text was updated successfully, but these errors were encountered: