mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Fix wrong page being displayed when entering/exiting Presentation mode with zoom set to 'page-fit'
This commit is contained in:
parent
4563f6cd58
commit
d6ca563f46
2 changed files with 21 additions and 6 deletions
|
@ -329,7 +329,12 @@ var PageView = function pageView(container, id, scale,
|
|||
};
|
||||
|
||||
this.scrollIntoView = function pageViewScrollIntoView(dest) {
|
||||
if (PresentationMode.active) { // Avoid breaking presentation mode.
|
||||
if (PresentationMode.active) {
|
||||
if (PDFView.page !== this.id) {
|
||||
// Avoid breaking PDFView.getVisiblePages in presentation mode.
|
||||
PDFView.page = this.id;
|
||||
return;
|
||||
}
|
||||
dest = null;
|
||||
PDFView.setScale(PDFView.currentScaleValue, true, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue