Browse Source

Merge pull request #8499 from Snuffleupagus/issue-8498

Prevent console errors when clicking to change page while in Presentation Mode (issue 8498)
Tim van der Meij 8 years ago committed by GitHub
parent
commit
e6f5b3e37e
  1. 7
      web/pdf_presentation_mode.js

7
web/pdf_presentation_mode.js

@ -288,7 +288,12 @@ class PDFPresentationMode {
if (!isInternalLink) { if (!isInternalLink) {
// Unless an internal link was clicked, advance one page. // Unless an internal link was clicked, advance one page.
evt.preventDefault(); evt.preventDefault();
this.pdfViewer.currentPageNumber += (evt.shiftKey ? -1 : 1);
if (evt.shiftKey) {
this._goToPreviousPage();
} else {
this._goToNextPage();
}
} }
} }
} }

Loading…
Cancel
Save