Ori Idan

Results 27 comments of Ori Idan

We did it based on screen size, so only for sizes we have found the problem. Later on we added the rerendering that I will send you the code later....

The offset is: this.layout.delta On Sun, Sep 12, 2021 at 7:27 PM Ori Idan ***@***.***> wrote: > We did it based on screen size, so only for sizes we have...

What we did was to count the number of page turns. Following is a simplified code of what we have done. rendition.on("relocated" func(loc) { chap = loc.end.href; if((prevChap == null)...

Strange, we have tested it and for us it solved the problem of imprecise offset calculation. rendition.resize(); display(currCfi); I did not write the code myself, I am just copying the...

We have tested it on all new versions. I am not sure what version exactly we use now. On Tue, Sep 14, 2021 at 6:22 PM cthu1hoo ***@***.***> wrote: >...

Yes, this is a known bug for long time. -- Ori Idan CEO Helicon Books http://www.heliconbooks.com On Wed, Oct 6, 2021 at 7:02 PM tctco ***@***.***> wrote: > I also...

To get the total number of pages use: this.book.locations.length() This is not exactly pages, this is the number of locations calculated at the beginning (by default every 600 characters). To...

Make sure you have locations. Locations should be calculated at first opening. On Sat, Mar 5, 2022 at 5:36 PM Erdogan ***@***.***> wrote: > @OriIdan > this.book.locations.cfiFromLocation(pageNumber) always return -1,...

Use: this.book.locations.generate(600); You should call locations.generate when you open the book, you can also save the result. The result is an array of objects. In this example it will create...

It seems you have hit a bug in epub.js In the display function set it to go to 0 instead of scrollWidth after you have switched the chapter. -- Ori...