element-motion
element-motion copied to clipboard
Scroll to top of page when you click a link in docs
In the docs, when I click on a sidebar link, scroll down to read a bit, then click on another sidebar link, it doesn't jump me back to the top of the page.
For instance, I can be reading "Advanced Usage" then click "Custom Animations" and I'll be halfway down the page. 😩
docz
uses @reach/router
so this might help: https://github.com/reach/router/issues/242
Yeah I know man, good pickup
I've raised two issues with docz https://github.com/pedronauck/docz/issues he's just slow to reply/merge PRs ATM 😅
I'll see if I can solve it in user land without a ton of code 👍
On Tue., 28 May 2019, 11:24 am Cory Simmons, [email protected] wrote:
In the docs, when I click on a sidebar link, scroll down to read a bit, then click on another sidebar link, it doesn't jump me back to the top of the page.
For instance, I can be reading "Advanced Usage" then click "Custom Animations" and I'll be halfway down the page. 😩
docz uses @reach/router so this might help: reach/router#242 https://github.com/reach/router/issues/242
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/madou/element-motion/issues/126?email_source=notifications&email_token=ABT4PHPPTKUACV2OX7YKLGLPXSCUHA5CNFSM4HP7A222YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWDSXVA, or mute the thread https://github.com/notifications/unsubscribe-auth/ABT4PHJ3LEQHWXSIQTPICVTPXSCUHANCNFSM4HP7A22Q .