mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Apply the current zoom level value to each page in Presentation Mode
This commit is contained in:
parent
fa03a777b6
commit
f35e777d81
2 changed files with 3 additions and 2 deletions
|
@ -327,6 +327,7 @@ var PageView = function pageView(container, id, scale,
|
|||
this.scrollIntoView = function pageViewScrollIntoView(dest) {
|
||||
if (PresentationMode.active) { // Avoid breaking presentation mode.
|
||||
dest = null;
|
||||
PDFView.setScale(PDFView.currentScaleValue, true, true);
|
||||
}
|
||||
if (!dest) {
|
||||
scrollIntoView(div);
|
||||
|
|
|
@ -397,8 +397,8 @@ var PDFView = {
|
|||
},
|
||||
|
||||
get isHorizontalScrollbarEnabled() {
|
||||
var div = document.getElementById('viewerContainer');
|
||||
return div.scrollWidth > div.clientWidth;
|
||||
return (PresentationMode.active ? false :
|
||||
(this.container.scrollWidth > this.container.clientWidth));
|
||||
},
|
||||
|
||||
initPassiveLoading: function pdfViewInitPassiveLoading() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue