Skip to content
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

TOC navigations should be recorded in history #1248

Open
ShaopengLin opened this issue Nov 13, 2024 · 0 comments
Open

TOC navigations should be recorded in history #1248

ShaopengLin opened this issue Nov 13, 2024 · 0 comments

Comments

@ShaopengLin
Copy link
Collaborator

ShaopengLin commented Nov 13, 2024

Currently, the TOC #42 navigations do not go through the Qt system and use Javascript to scroll directly. It would be great to have an in-page history, where the history records those actions but sends them to Javascript for scrolling instead of refreshing the current page to the URL.

Note that if a page is refreshed, all DOM states are also reset, which is not what we want. This is the reason why we cannot use setUr to navigate to TOC entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants