Scroll back up when navigating?
See original GitHub issueIf I have a link (just an a
using use:link
for example) somewhere at the bottom of a long page, and press it to navigate to another route, that new page is also scrolled down instead of it starting from the top. How can I workaround this behavior?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Cannot scroll back up after scrolling down navigation pane
If it's a one time thing just open Task Manager and right click on File Explorer and restart it.
Read more >Make navigation appear when scrolling up
I would like the CSS to hide the header/navigation on my website once someone starts scrolling down. It always stays at the top....
Read more >Restore scroll position when navigating with React Router 6
The page should be scrolled to the top. Recap: Go to page A, scroll down and click a link that takes you to...
Read more >Navigating PDF pages, Adobe Acrobat
Open and navigate an article thread · To scroll through the article one pane at a time, press Enter or click in the...
Read more >Twitter app scrolls to top with back button issue gets ...
Now: I press the Back button, but it instantly scrolls up to the top of the thread. So then I have to scroll...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
my solution in meanwhile:
@jimmywarting epic solution – but it runs before navigation, meaning the “back” button loses its scroll position.
However, just putting the scrollTo after the reflect, does the trick! 👌