Skip to content

Commit

Permalink
Chore: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press committed Feb 28, 2019
1 parent 0d09d7e commit e885d7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/viewers/doc/PresentationViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ class PresentationViewer extends DocBaseViewer {
*/
overwritePdfViewerBehavior() {
// Overwrite scrollPageIntoView for presentations since we have custom pagination behavior
// This override is needed to allow PDF.js to change pages when clicking on links in a presentation that
// navigate to other pages
this.pdfViewer.scrollPageIntoView = (pageObj) => {
if (!this.loaded) {
return;
Expand Down

0 comments on commit e885d7d

Please sign in to comment.