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

Simplify spread-mode handling for the PAGE scroll-mode #14793

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

The spread-mode code in BaseViewer.#ensurePageViewVisible-method was initially copied from the BaseViewer._updateSpreadMode-method, which means that it's slightly more complicated than actually necessary.
In particular, in the PAGE scroll-mode there can only be one spread active at a time and we thus don't need to handle insertion of multiple spread-divs.

The spread-mode code in `BaseViewer.#ensurePageViewVisible`-method was initially copied from the `BaseViewer._updateSpreadMode`-method, which means that it's slightly more complicated than actually necessary.
In particular, in the PAGE scroll-mode there can only be *one* spread active at a time and we thus don't need to handle insertion of multiple spread-divs.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/524cd79df93db11/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/524cd79df93db11/output.txt

Total script time: 2.78 mins

Published

@timvandermeij timvandermeij merged commit 5032e35 into mozilla:master Apr 19, 2022
@timvandermeij
Copy link
Contributor

Looks good to me!

@Snuffleupagus Snuffleupagus deleted the ensurePageViewVisible-spreads branch April 19, 2022 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants