Skip to content

Navigator places locator with anchor in the middle of the screen in scroll mode #383

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

Closed
chrfalch opened this issue Aug 28, 2023 · 0 comments · Fixed by #384
Closed

Navigator places locator with anchor in the middle of the screen in scroll mode #383

chrfalch opened this issue Aug 28, 2023 · 0 comments · Fixed by #384

Comments

@chrfalch
Copy link
Contributor

When an EPub navigator is in scroll mode and navigating to a locator with an anchor (ex.: /OEBPS/chapter16.xhtml#endnote-022), the scroll position is calculated to place the target element in the middle of the screen. This can be an issue for footnotes in large indexes because it might not be clear which footnote that was clicked.

See same issue in swift-toolkit here:

readium/swift-toolkit#328

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

Successfully merging a pull request may close this issue.

2 participants