mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8499 from Snuffleupagus/issue-8498
Prevent console errors when clicking to change page while in Presentation Mode (issue 8498)
This commit is contained in:
commit
e6f5b3e37e
1 changed files with 6 additions and 1 deletions
|
@ -288,7 +288,12 @@ class PDFPresentationMode {
|
|||
if (!isInternalLink) {
|
||||
// Unless an internal link was clicked, advance one page.
|
||||
evt.preventDefault();
|
||||
this.pdfViewer.currentPageNumber += (evt.shiftKey ? -1 : 1);
|
||||
|
||||
if (evt.shiftKey) {
|
||||
this._goToPreviousPage();
|
||||
} else {
|
||||
this._goToNextPage();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue