|
|
@ -1170,8 +1170,9 @@ var PDFView = { |
|
|
|
var support = doc.requestFullscreen || doc.mozRequestFullScreen || |
|
|
|
var support = doc.requestFullscreen || doc.mozRequestFullScreen || |
|
|
|
doc.webkitRequestFullScreen; |
|
|
|
doc.webkitRequestFullScreen; |
|
|
|
|
|
|
|
|
|
|
|
// Disable presentation mode button if we're in an iframe
|
|
|
|
if (document.fullscreenEnabled === false || |
|
|
|
if (window.parent !== window) { |
|
|
|
document.mozFullScreenEnabled === false || |
|
|
|
|
|
|
|
document.webkitFullscreenEnabled === false ) { |
|
|
|
support = false; |
|
|
|
support = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2183,7 +2184,10 @@ var PDFView = { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enterPresentationMode: function pdfViewEnterPresentationMode() { |
|
|
|
this.isPresentationMode = true; |
|
|
|
this.isPresentationMode = true; |
|
|
|
var currentPage = this.pages[this.page - 1]; |
|
|
|
var currentPage = this.pages[this.page - 1]; |
|
|
|
this.previousScale = this.currentScaleValue; |
|
|
|
this.previousScale = this.currentScaleValue; |
|
|
@ -2195,7 +2199,6 @@ var PDFView = { |
|
|
|
}, 0); |
|
|
|
}, 0); |
|
|
|
|
|
|
|
|
|
|
|
this.showPresentationControls(); |
|
|
|
this.showPresentationControls(); |
|
|
|
return true; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
exitPresentationMode: function pdfViewExitPresentationMode() { |
|
|
|
exitPresentationMode: function pdfViewExitPresentationMode() { |
|
|
@ -4023,7 +4026,9 @@ window.addEventListener('afterprint', function afterPrint(evt) { |
|
|
|
document.mozFullScreen || |
|
|
|
document.mozFullScreen || |
|
|
|
document.webkitIsFullScreen; |
|
|
|
document.webkitIsFullScreen; |
|
|
|
|
|
|
|
|
|
|
|
if (!isPresentationMode) { |
|
|
|
if (isPresentationMode) { |
|
|
|
|
|
|
|
PDFView.enterPresentationMode(); |
|
|
|
|
|
|
|
} else { |
|
|
|
PDFView.exitPresentationMode(); |
|
|
|
PDFView.exitPresentationMode(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|