material-design-lite icon indicating copy to clipboard operation
material-design-lite copied to clipboard

New page not loading from top

Open prathmesh101 opened this issue 6 years ago • 1 comments

Website: https://5minutesreview.site/

Issue: Situation: Suppose I'm on landing page. I scroll down then later I click on "about me" of the top navigation. The about me page will not load from top or start of the page like usual. Again, If I click on resume it will again load from bottom and I have to scroll on top to view contents. This issue wont happen if I'm on already on the top and then navigate. It is something that doesnt look professional. I don't understand what is causing this issue.

prathmesh101 avatar May 06 '19 20:05 prathmesh101

could this be related to React Navigation (when you use it)? have a look at this https://github.com/react-navigation/react-navigation/issues/991#issuecomment-464365753

or just listen to the popstate event and set scrolltop to 0

aburai avatar May 06 '19 23:05 aburai