On mobile, selecting a section tab doesn't always return the window to the top of the page as intended.
To Reproduce Bug:
- On mobile, go to "About" tab.
- Scroll to the bottom of the page, or at least a good portion down.
- Click "Contact" in the top navbar.
- Contact page appears, but does not scroll up as intended.
- Clicking "Contact" again will scroll the page to the top as expected.
Expected Behavior:
Clicking a section tab should always return the page to the desired scroll position (top)
This may be an issue with Element.scrollIntoView(). The documentation here mentions:
"The element may not be scrolled completely to the top or bottom depending on the layout of other elements."
I'm not sure what the conditions are for this to happen/not happen.
On mobile, selecting a section tab doesn't always return the window to the top of the page as intended.
To Reproduce Bug:
Expected Behavior:
Clicking a section tab should always return the page to the desired scroll position (top)
This may be an issue with Element.scrollIntoView(). The documentation here mentions: