You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background
On my Epub App, I am switching between epubs. I need to get current page and total page on load to show it on my navigation. To get the total page and current page, I am using pageChanged callback on the EpubViewer.
Issues
The pageChanged callback sometime returns currentPage as -1 and total page as 0 and I cant use that on my navigation.
CurrentPage is sometimes 0, not sure if this is a bug or that just how epubs are.
Go to the demo link on incognito, make sure cache/localstorage is clear.
Change Epubs using the change epub button.
Notice that current page is sometimes -1 and total page is 0.
You can also check the console to see the complete object returned from pageChanged callback.
Screenshot 1
Screenshot 2
Issue is happening across all devices and browsers
The text was updated successfully, but these errors were encountered:
abdulwahabone
changed the title
Switching Epub urls causes pageChanged callback to return cuurentPage as -1
Switching Epub urls causes pageChanged callback to return currentPage as -1
Feb 23, 2023
Background
On my Epub App, I am switching between epubs. I need to get current page and total page on load to show it on my navigation. To get the total page and current page, I am using pageChanged callback on the EpubViewer.
Issues
To Reproduce
I have created a codesandbox demo
Issue is happening across all devices and browsers
The text was updated successfully, but these errors were encountered: