We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open a page like https://docsify.js.org/#/configuration
click a sub-sidebar link (the toc of current document), or click a heading in the main content
using F5, refresh the current page
the page lost sync scroll. when you scroll the main page, the sidebar could not sync scroll.
the sidebar sync scroll always.
Bug does still occur when all/other plugins are disabled?
Your OS:
Node.js version:
npm/yarn version:
Browser version:
Docsify version:
Docsify plugins:
The text was updated successfully, but these errors were encountered:
if I don't click the left sidebar item, when refresh the page using F5, I always sync scroll.
Sorry, something went wrong.
see this code in scroll.js
export function scrollActiveSidebar(router) { const path = router.getCurrentPath(); console.log(path); // log info for test dom.off('scroll', () => highlight(path)); dom.on('scroll', () => highlight(path)); }
if I don't click the links at main content or side bar, the path is :
/docs/pagename
if I clicked the links at main content or side bar, the path is:
/docs/pagename?id=anchorid
but in the function highlight(path) , does not handle the id in path.
function highlight(path)
id
path
fix the bug docsifyjs#1127 and docsifyjs#1136.
e91d065
Merge pull request #1146 from vagra/bugfix
b2dd708
Fix #1136 and #1127
Successfully merging a pull request may close this issue.
Bug Report
Steps to reproduce
open a page like https://docsify.js.org/#/configuration
click a sub-sidebar link (the toc of current document), or click a heading in the main content
using F5, refresh the current page
What is current behaviour
the page lost sync scroll.
when you scroll the main page, the sidebar could not sync scroll.
What is the expected behaviour
the sidebar sync scroll always.
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS:
Node.js version:
npm/yarn version:
Browser version:
Docsify version:
Docsify plugins:
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)
The text was updated successfully, but these errors were encountered: