-
Notifications
You must be signed in to change notification settings - Fork 147
Fix scrolling to top when navigating to links in scrollmode #329
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
Conversation
To make scrolling to locations in lists like footnotes etc the scrollToRect method now places the target element as the topmost element when scrolling. Fixes Navigator places locator with anchor in the middle of the screen in scroll mode readium#328
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @chrfalch 👌
Note that this could be weird with highlights, ideally we want to center them. However it looks like an usability issue when jumping to a toc item or a link, as you have to find the destination on the page. So for now let's use this strategy, but come up later with an API solution to send additional options to the go()
method to state if we prefer to center the destination vertically or not, and let the app decides on a case-by-case basis.
19c714e
to
4f5fbd1
Compare
4f5fbd1
to
1fc2fdb
Compare
78e6c0b
to
a01dbc7
Compare
To make scrolling to locations in lists like footnotes etc the scrollToRect method now places the target element as the topmost element when scrolling.
Fixes Navigator places locator with anchor in the middle of the screen in scroll mode #328