-
Notifications
You must be signed in to change notification settings - Fork 17
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 Position Logic Improvements #1
Comments
How about this Ryan? Seems to satisfy all the above criteria for me when I include in in my gatsby-browser.js file?
|
@dsbrianwebster thanks for the suggestion! After an initial test that appears to accomplish what I was after. I will have to do a little more testing to be sure but the logic looks good to me. |
Didn't really work for me. I see it working in a console but no effect on scrolling position. |
Sorry for the double post if you get notified again. Not sure what your issue might be. For good measure I would clear your cache and make sure your are using the latest version of Gatsby. I used Gatsby version 1.9.172 when testing this solution and it seemed to work fine for me. I can't vouch for future or past versions though. I thought for a moment I was able to replicate your issue but after checking my dependencies and clearing my cache it was working. 🤷 Sorry if that isn't too helpful. |
Come up with a better solution for when to remember or not remember the scroll position.
Remember Scroll Position
Start At The Top Of The Page
The text was updated successfully, but these errors were encountered: