fabe/gatsby-universal

Navigation links scroll to top before transitioning to next page.

rafaelderolez opened this issue · 3 comments

Steps to reproduce

  1. Scroll down on the homepage of my Gatsby-universal CodeSandbox example
  2. Click a navigation link

Expected result
Page transitions to next page.

Actual result
Page scrolls to top before transitioning to the next page.

@rafaelderolez,

In case you haven't already resolved this on your own I encountered a similar issue and a solution was proposed here:

gatsbyjs/gatsby#5213 (comment)

@ryanwiemer I ended up not needing page transitions on the project I used this on but that solution looks promising, thanks!

fabe commented

Hey! Thanks for opening this.

Yes, that seems like a Gatsby-core issue. Closing 🙂