mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Disable Presentation Mode until the document has started rendering
This commit is contained in:
parent
d86c7e3ebf
commit
e367f49686
1 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,8 @@ var PresentationMode = {
|
|||
this.container = options.container;
|
||||
this.secondaryToolbar = options.secondaryToolbar;
|
||||
|
||||
this.viewer = this.container.firstElementChild;
|
||||
|
||||
this.firstPage = options.firstPage;
|
||||
this.lastPage = options.lastPage;
|
||||
this.pageRotateCw = options.pageRotateCw;
|
||||
|
@ -65,7 +67,8 @@ var PresentationMode = {
|
|||
},
|
||||
|
||||
request: function presentationModeRequest() {
|
||||
if (!PDFView.supportsFullscreen || this.isFullscreen) {
|
||||
if (!PDFView.supportsFullscreen || this.isFullscreen ||
|
||||
!this.viewer.hasChildNodes()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue