Scroll reset when back button used
Closed this issue · 1 comments
vkitchen commented
When a user hits back to return to a previous page they've browsed from. The scrollbar isn't reset to its previous position. This seems to be an issue in which order the scroll vs url change occurs.
The two solutions are:
- Manually scroll ourselves
- Force a scrollbar on every page, and then the behaviour goes away.
I think the later works better as saving and restoring scroll state is tedious.
vkitchen commented
Note github does not have this issue. Perhaps we could find their solution
Some other resources:
angular/angular#10929
https://brigade.engineering/maintaining-scroll-positions-in-all-browsers-a280d49bffca