-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Update URL on scroll #229
Comments
Hey, thanks for the suggestion! I'd definitely appreciate a PR for this. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am working on updating a URL through
history.pushState
when scrolling through a long document. Since this document uses already tocbot, ideally it would trigger the url change at the same time as the table of contents gets updated, so that it stays in sync.To do it, I would have to replicate quite a bit of tocbot functionality, so I am wondering if you considered an option in tocbot to update the URL on scroll. The code for doing it is relatively simple:
(it's just a POC code, throttling needs to be added).
If you think it makes sense, I can prepare a PR.
The text was updated successfully, but these errors were encountered: