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

Adding page loading with Double Page Mode. #480

Merged
merged 5 commits into from
Jan 14, 2024

Conversation

rickymcmuffin
Copy link
Contributor

This will add a loading animation to each page in double page mode. What this fixes is the user gets feedback that the page has changed rather than it showing the previous page while it loads. This will also update the double page logic to only run after the pages have loaded.

This will fix issue #422

This will also fix an issue that causes double page mode to only show one page if the first page is loaded but the second one isn't.

Loading screen when both pages are loading:
Screenshot 2023-11-27 094821

Loading screen when only the second page is loading:
Screenshot 2023-11-27 094931

rickymcmuffin and others added 4 commits November 26, 2023 16:36
- remove refs because they do not trigger a rerender
- remove initial render interval
- remove page rendering via portal

During the initial render nothing got rendered (pages or placeholder) because for that to happen, the images had to be loaded.
Thus, the loading placeholder never got shown.
@schroda
Copy link
Collaborator

schroda commented Jan 14, 2024

I needed the changes for #550

@schroda schroda marked this pull request as ready for review January 14, 2024 23:14
@schroda schroda merged commit 9962e07 into Suwayomi:master Jan 14, 2024
1 check passed
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.

2 participants