-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
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
Does it possible to scroll when <a/> is clicked but not hashchange? #1780
Comments
docsify does not provide a right sidebar, you can use a plugin for that. |
不好意思,我可能没表述好。 |
Could u provide some details based on our site https://docsify.js.org/ ? |
https://docsify.js.org/#/pwa?id=create-serviceworker |
Gotcha, I'm wondering what the use case that you wanna scroll back to the section header when you click it again. |
Sometimes the sction is long, and click and scroll is very natural in my mind, just like "back to top" button, so I click it,but nothing happend which makes me confused. So it's just for enhancing the feel of interaction in some special situation, maybe I am a bit nitpicky. Thanks for your reply. |
AFAIK, the sort of
no prob. |
another approach would be to refresh the page, which should take you to where you were last anchored |
Feature request
What problem does this feature solve?
Click a a link after first time, it will not scroll.
What does the proposed API look like?
https://ant.design/components/grid/#components-grid-demo-flex-align

In antd doc, we can click the right siderbar to trigger scroll everytime.
How should this be implemented in your opinion?
Maybe addEventListener to click, and scroll when a link is clicked?

Are you willing to work on this yourself?
I can try, but I just begin with using doscify,maybe have a lot of conflicts with other ability.
The text was updated successfully, but these errors were encountered: