i encounter a reproducible problem:
problem:
when you open a page via a deep link, like say like https://docsify.js.org/#/more-pages?id=ignoring-subheaders and then scroll to a different section (by reading on or scrolling up) there are two problems:
what i think should happen:
Adding $0.02 since this issue is related to #522.
I agree that the sidebar should always reflect the current scroll position of the page: as the user scrolls, the active link in the sidebar should be highlighted in all scenarios.
I do not , however, think the URL should be updated as the page is scrolled. Instead, the URL should be updated only when a user-initiated navigation action has occurred (i.e. clicking a sidebar link). This is how anchor tags work in all browsers by default, so this feels like the expected behavior.
- because of this, if you scroll to a complete different place on the page and happen to click on the same link in the menu again (the one you deep-navigated to) nothing happens.
Is exactly a dupe of #522
Is exactly a dupe of #522
you mean #522 is a dupe of this ;)
Most helpful comment
Adding $0.02 since this issue is related to #522.
I agree that the sidebar should always reflect the current scroll position of the page: as the user scrolls, the active link in the sidebar should be highlighted in all scenarios.
I do not , however, think the URL should be updated as the page is scrolled. Instead, the URL should be updated only when a user-initiated navigation action has occurred (i.e. clicking a sidebar link). This is how anchor tags work in all browsers by default, so this feels like the expected behavior.