-
Notifications
You must be signed in to change notification settings - Fork 178
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
React Fullpage.js flickers when scrolling on the first load of the site #270
Comments
Can you provide an isolated reproduction in Codesandbox with no CSS or JS files external to fullPage.js and the minimum amount of HTML code? Use empty sections with a single heading unless strictly necessary for the reproduction.
Did you try clicking on the link provided by the error? :) |
Thanks, @alvarotrigo for the quick reply! I'll try purchasing the license and see if it solves the problem. I'll keep you posted! Thanks again. |
The license won't solve it.
Only get it when you are sure you'll be using fullpage.
On Fri, 10 Sep 2021 at 22:22, shielakn ***@***.***> wrote:
Thanks, @alvarotrigo <https://github.com/alvarotrigo> for the quick reply!
I'll try purchasing the license and see if it solves the problem.
I'll keep you posted! Thanks again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#270 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANASVT3WNNVGPHZTXYPKMLUBJSHVANCNFSM5D2AIWVQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
* Alvaro Trigo alvarotrigo.com <http://alvarotrigo.com> [image: Follow me
on Twitter!] <https://twitter.com/IMAC2> Check the new fullPage web
builder! <https://fullsnap.io> *
|
Oh I see. Here's a link to isolated reproduction: https://codesandbox.io/s/react-fullpage-js-example-forked-5di44?file=/src/index.js I can't seem to reproduce whatever is happening on the site (https://www.screencast.com/t/aEhZvtZS) whenever it's on the production environment. |
The whole purpose of the isolated reproduction is trying to reproduce the issue :) |
Hi! I hope someone can help me out with this problem...
Here's a screen capture of my site whenever I scroll on the first load of the page: https://www.screencast.com/t/aEhZvtZS
It seems like before it goes to the next section, it goes to the top then quickly goes back to the actual section.
I built the site using Gatsby and I'm not sure what's going on. It doesn't happen when I'm on my localhost but once I pushed it to a staging site, I see the issue.
// fullpage options
const decadeSectionOptions = { anchors: decadeAnchors, paddingTop: '110px', scrollBar: false, scrollingSpeed: 800, lazyLoading: true, autoScrolling: true, continuousVertical: true, recordHistory: true, };
// gatsby-browser.js
export const shouldUpdateScroll = ({ routerProps: { location }, getSavedScrollPosition }) => { if (location.search) { window.setTimeout(() => window.scrollTo(0, 0), 100); } if (location.hash) { return false; } return true; };
This is the only error I get on my console:
![image](https://user-images.githubusercontent.com/57919044/132910523-6b38e07d-33d5-4d2e-817d-3c7e2df1e0e3.png)
Please help.
Thanks!
The text was updated successfully, but these errors were encountered: