futurepress / epub.js

Enhanced eBooks in the browser.
http://futurepress.org
Other
6.4k stars 1.1k forks source link

rendition.next() on cover page #1158

Open alikazemkhanloo opened 3 years ago

alikazemkhanloo commented 3 years ago

Hi, when I first open a book, It is on the cover page. here I click my next button that will call rendition.next(). But nothing happens. When I select an item in TOC, it navigates to some place in the book, and then rendition.next() will work as expected. Is there a way to navigate off coverpage?

alikazemkhanloo commented 3 years ago

Update: inside my ebook's content.opf I found:

<itemref idref="cover" linear="no" />

Removing linear='no' will solve my issue for now. but epubjs should handle it correctly.