epubjs-reader
epubjs-reader copied to clipboard
Bookmarks not listing correct location
Just tried out the demo site, noticed this.
- In Chrome incognito window, visit http://futurepress.github.com/epubjs-reader/
- In TOC sidebar, click on "Chapter 43. Hark!" to navigate there.
- Close sidebar, click Bookmark icon
- Re-open sidebar to the bookmarks view. The bookmark list now has an entry saying "Chapter 45. The Affidavit." but it presumably ought to display "Chapter 43. Hark!"
@bgoldowsky did you investigate what was causing this, and did you resolve it? If so, can you share a code snippet?
I saw the same issue on every epub reader here from futurepress...There's a difference of 2 on the index every time you add a bookmark. It seems that only the label added to the bookmark lists is wrong becouse if you click the bookmark it goes to the exact position..Can it be solved?
adding -2 when retrieving the tocitem solved for me for the moment.. bookmark_controller tocItem = book.navigation.toc[spineItem.index-2];