Mantano / iridium_reader_widget

Plug and play reader widget
Other
39 stars 10 forks source link

Go to Page Command not redirecting properly. #2

Open AshishAtKody opened 1 year ago

AshishAtKody commented 1 year ago

I have implemented this sdk in my flutter ebook reader mobile application. I want to navigate to specific page on user-input. For this I am using readerContext.execute(GoToPageCommand(index)); function where index is user-specific page index.

It works well for the epub file where every chapter has single page, but In case where chapter has multiple pages, it only redirects to first page of that chapter instead of specific page.

I saw the percentage calculation for findSpineItemIndex in GoToPageCommandProcessor, I want to navigate to specific page index. Please provide solution.

dr0g0 commented 1 year ago

And GoToLocationCommand also redirecting the start of a chapter.