mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[Regression] Ensure that pre-rendering of the next/previous page works correctly in Presentation Mode, when horizontal scrolling was enabled
Note how in `BaseViewer.forceRendering` the Scroll mode is used to determine how pre-rendering will work. Currently this is broken in Presentation Mode, if horizontal scrolling was enabled prior to entering fullscreen. Furthermore, there's a few additional cases where the `this.scrollMode === ScrollMode.HORIZONTAL` check is pointless either in Presentation Mode or when a `PDFSinglePageViewer` instance is used.
This commit is contained in:
parent
6a086fa0b9
commit
05f682cd4b
3 changed files with 24 additions and 8 deletions
|
@ -142,6 +142,11 @@ class PDFSinglePageViewer extends BaseViewer {
|
|||
location: this._location,
|
||||
});
|
||||
}
|
||||
|
||||
get _isScrollModeHorizontal() {
|
||||
// The Scroll/Spread modes are never used in `PDFSinglePageViewer`.
|
||||
return shadow(this, '_isScrollModeHorizontal', false);
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue