-
Notifications
You must be signed in to change notification settings - Fork 100
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
openSpineItemElementCfi/openSpineItemElementId opens wrong page if html is already open #384
Comments
Hello @jccr, I noticed that in
If I replace the last return statement
in the current function
, then the issue seems to be resolved, but I do not understand why that code was removed in the first place and what will be the regression if I apply the fix I suggested. Could you please guide me with it and make changes in the library itself so that it is resolved for future users as well. |
Acknowledged. Thanks for the report.
…On Wed, Apr 5, 2017 at 11:33 PM nandita121189 ***@***.***> wrote:
Hello @jccr <https://github.com/JCCR>,
I noticed that in getVisibleContentOffsets() in cfi_navigation_logic.js,
the following code was removed in one of the commits 99640b8
<99640b8>
return {
left: (options.paginationInfo ? options.paginationInfo.pageOffset : 0)
* (isPageProgressionRightToLeft() ? -1 : 1)
};
If I replace the last return statement
return {
top: 0,
left: 0
};
in the current function getVisibleContentOffsets(), with the code removed
in the above commit
return {
left: (options.paginationInfo ? options.paginationInfo.pageOffset : 0)
* (isPageProgressionRightToLeft() ? -1 : 1)
};
, then the issue seems to be resolved, but I do not understand why that
code was removed in the first place and what will be the regression if I
apply the fix I suggested. Could you please guide me with it and make
changes in the library itself so that it is resolved for future users as
well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#384 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE5RbLOG_-gmpg0CkTKcvBewM4JfGF6kks5rtIdOgaJpZM4Mz1GZ>
.
|
Similar? readium/readium-js-viewer#404 |
Related? #261 |
I am not sure about readium/readium-js-viewer#404, but #261 is definitely the same issue as openSpineItemElementCfi() internally calls |
Hi @danielweck , I just checked your solution on develop branch, although the bug is fixed now but it has a huge regression issue. If you notice the localstorage(of browser) you will see that the object storing last visited location of book i.e. If I revert only the changes done in above mentioned commit then it behaves well as before. Can you please verify the same at your end and re open this issue if this problem exists. Thanks |
Indeed!! |
Thank you very much for bringing this up @nandita121189 @jccr any idea why "CFI navigation logic" |
Related: readium/readium-js-viewer#616 |
Hello @danielweck , |
No regression bug in the TravisCI-deployed build (from the |
PS: tested on Chrome and Firefox on OSX (Safari kinda works, but has some inconsistencies when refreshing the page). |
Sorry about my lack of response @nandita121189 @danielweck |
@danielweck Yes I just checked again it works for me too. As of now I didn't find the regression issues. |
@nandita121189 Good to know, thanks! Thank you @jccr for finding time to take a look at this issue. |
Hello @danielweck , I just checked and noticed that although Could you please check and reopen the issue. Thanks. |
… on page change requests
… on page change requests
… on page change requests
… on page change requests
Hi, |
YEs |
This issue is coming only in scroll auto mode (reflowable view)
The issue seems to be in function
getPageForElementCfi()
(cfi_navigation_logic.js
) that returns wrongpageIndex
. This function internally calls functionfindPageByRectangles().
The value of "left" inclientRectangles
variable comes wrong when html that is already open and user is not on first page.The text was updated successfully, but these errors were encountered: