Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to Page Command not redirecting properly. #2

Open
AshishAtKody opened this issue Nov 22, 2022 · 1 comment
Open

Go to Page Command not redirecting properly. #2

AshishAtKody opened this issue Nov 22, 2022 · 1 comment

Comments

@AshishAtKody
Copy link

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
Copy link

dr0g0 commented May 1, 2023

And GoToLocationCommand also redirecting the start of a chapter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants