Skip to content

Commit

Permalink
Update scroll-restoration.md (#4883)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrscobbler authored and timdorr committed Mar 31, 2017
1 parent 82fe4e8 commit 7b2bfb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Scroll Restoration

In earlier version of React Router we provided out-of-the-box support for scroll restoration and people have been asking for it ever since. Hopefully this document helps you get what you need out of the scroll bar and routing!
In earlier versions of React Router we provided out-of-the-box support for scroll restoration and people have been asking for it ever since. Hopefully this document helps you get what you need out of the scroll bar and routing!

Browsers are starting to handle scroll restoration with `history.pushState` on their own in the same manner they handle it with normal browser navigation. It already works in chrome and it's really great. [Here's the Scroll Restoration Spec](https://majido.github.io/scroll-restoration-proposal/history-based-api.html#web-idl).

Expand Down

0 comments on commit 7b2bfb4

Please sign in to comment.