Hi,
I have build an web app with Readium before, it works perfectly. Now I am trying to move the app to Electron, almost using the same code.
But something wired happened. I found that, in the Electron App, if the reader is in scroll-document mode, it cannot jump to the right place using openContentUrl when the url has a hashtag in it, such as "Text/chapter4.html#section_1". However, if the reader is in "auto" mode (AKA, Paged), openContentUrl can jump to the right place.
Sum it up, the same code, working all good on Web app. Copying the code into an Electron App, openContentUrl() can not work properly when the reader is in scroll-doc mode and the url contains # in it.
I have read the code of openContentUrl, but I can not understand the meaning of the second and third parameters. Now, my code is like this, I copy this code from Readium web reader, it seems to work very well for Web App.

Please help, thank you very much.
Hi,
I have build an web app with Readium before, it works perfectly. Now I am trying to move the app to Electron, almost using the same code.
But something wired happened. I found that, in the Electron App, if the reader is in scroll-document mode, it cannot jump to the right place using openContentUrl when the url has a hashtag in it, such as "Text/chapter4.html#section_1". However, if the reader is in "auto" mode (AKA, Paged), openContentUrl can jump to the right place.
Sum it up, the same code, working all good on Web app. Copying the code into an Electron App, openContentUrl() can not work properly when the reader is in scroll-doc mode and the url contains # in it.
I have read the code of openContentUrl, but I can not understand the meaning of the second and third parameters. Now, my code is like this, I copy this code from Readium web reader, it seems to work very well for Web App.
Please help, thank you very much.