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

Issue : #1384 Fix blank page when resize occurs before first page is rendered #1385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vince4
Copy link

@vince4 vince4 commented May 10, 2024

I found an edge case pretty hard to reproduce.
When window.resize event is triggered while book.renderTo( is ongoing, the reader display a blank page with an empty div.

To fix this bug, I suggest to save the initial target in the manager, and send the target during resize.
And to avoid the chapter to be reset to its initial position, I suggest to reset this initial target when the view scroll.

@vince4
Copy link
Author

vince4 commented May 10, 2024

Issue : #1384

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

Successfully merging this pull request may close these issues.

1 participant