Browse Source

Merge pull request #3820 from Snuffleupagus/prevent-enter-PresentationMode-during-load

Disable Presentation Mode until the document has started rendering
Tim van der Meij 12 years ago
parent
commit
26fb376b65
  1. 5
      web/presentation_mode.js

5
web/presentation_mode.js

@ -33,6 +33,8 @@ var PresentationMode = { @@ -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 = { @@ -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…
Cancel
Save