Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Conversation

sscherfke
Copy link

You have to update location.hash before scrolling or the browser history will break and not jump to the correct positions in the document.

You have to update `location.hash` before scrolling or the browser history will break and not jump to the correct positions in the document.
Changing `location.hash` before scrolling fixes the browser history but breaks smooth scrolling. In order to fix both, we need to add a temporary fake link element.
@typeofweb
Copy link

This is not true. What browsers have you tested?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants