You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When jumping (go()) to a given position, the EPUB navigator settles on a different position (a couple positions before or after) than the one requested.
Expected behavior
The user should reach precisely the requested position.
Environment
Readium version: 2.3.0
Additional context
It's a tricky issue, because the progression for a position is computed differently in the position list and in the navigator. In the position list, it's a progression of bytes while in the EPUB navigator a scroll offset. As the progression takes precedence over position (because more precise) when resolving a locator, we end up in a different position.
It's unlikely we can fix the progression issue between bytes vs scroll offset. However, maybe the position list should not fill in the progression (as to let the position take precedence). Or the app could ask for a different resolution strategy on a case by case basis.
The text was updated successfully, but these errors were encountered:
Bug Report
What happened?
When jumping (
go()
) to a given position, the EPUB navigator settles on a different position (a couple positions before or after) than the one requested.Expected behavior
The user should reach precisely the requested position.
Environment
2.3.0
Additional context
It's a tricky issue, because the
progression
for a position is computed differently in the position list and in the navigator. In the position list, it's a progression of bytes while in the EPUB navigator a scroll offset. As theprogression
takes precedence overposition
(because more precise) when resolving a locator, we end up in a differentposition
.It's unlikely we can fix the
progression
issue between bytes vs scroll offset. However, maybe the position list should not fill in theprogression
(as to let theposition
take precedence). Or the app could ask for a different resolution strategy on a case by case basis.The text was updated successfully, but these errors were encountered: