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

Prevent console errors when clicking to change page while in Presentation Mode (issue 8498) #8499

Merged
merged 1 commit into from
Jun 7, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

The click handler used in Presentation Mode didn't check if the first/last page was already reached, which after PR #7529 now causes an unnecessary console error.
Hence we should simply use the already existing _goToPreviousPage/_goToNextPage methods instead, since they do the necessary bounds checking.

Fixes #8498.

…tion Mode (issue 8498)

The click handler used in Presentation Mode didn't check if the first/last page was already reached, which after PR 7529 now causes an unnecessary console error.
Hence we should simply use the already existing `_goToPreviousPage`/`_goToNextPage` methods instead, since they do the necessary bounds checking.

Fixes 8498.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2017

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/00ed258777a6586/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 7, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/00ed258777a6586/output.txt

Total script time: 2.15 mins

Published

@timvandermeij timvandermeij merged commit e6f5b3e into mozilla:master Jun 7, 2017
@timvandermeij
Copy link
Contributor

Looks good. Thank you!

@Snuffleupagus Snuffleupagus deleted the issue-8498 branch June 7, 2017 21:08
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Prevent console errors when clicking to change page while in Presentation Mode (issue 8498)
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