Skip to content

Commit

Permalink
#1856 Single-page mode was broken on initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Sep 16, 2023
1 parent 9a8e412 commit 791e21d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions projects/ngx-extended-pdf-viewer/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,3 +475,4 @@
- 17.4.4 #1805 emit every event within ngZone; #1807 reactivated the presentation mode menu item of the secondary menu (stable branch pdf.js 3.5 only)
- 17.4.5 #1808 cease setting the page acording to the visible page in single-page mode (because this is only useful to track the scroll position and because it caused an infinite loop in presentation mode) (stable branch pdf.js 3.5 only)
- 17.4.6 #1812 use generous compatibility settings for older browsers; included the bugfix #1807 now with the bleeding edge branch, too
- 17.4.7 #1856 Single-page mode was broken on initial load
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export class NgxExtendedPdfViewerComponent implements OnInit, AfterViewInit, OnC
if (viewMode === 'single') {
// since pdf.js, our custom single-page-mode has been replaced by the standard scrollMode="page"
this.scrollMode = ScrollModeType.page;
this._pageViewMode = 'multiple';
this._pageViewMode = viewMode;
}
if (viewMode === 'book') {
this.showBorders = false;
Expand Down

0 comments on commit 791e21d

Please sign in to comment.