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:
Tim van der Meij 2017-06-07 22:56:47 +02:00 committed by GitHub
commit e6f5b3e37e

View File

@ -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();
}
}
}
}