AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
675 stars 30 forks source link

hash router not scroll on top on page change #16

Closed az67128 closed 4 years ago

az67128 commented 4 years ago

if page changed scroll remains as on previous page. Hash router is used.

AlexxNB commented 4 years ago

There no any scroll manipulation due navigation. So you can use advice from this issue to scroll at the top of the page each time $router.path changes

az67128 commented 4 years ago

Could you be so kind to add this solution to docs?

AlexxNB commented 4 years ago

Shure. Will do.