Disable PresentationMode for certain problematic configurations

Instead of trying to hack around various browser defects, let's just disable PresentationMode in the affected browsers. This patch:

- Disables PresentationMode in IE11+ when the viewer is embedded; fixes 4711.
This commit is contained in:
Jonas Jenwald 2014-12-03 15:38:25 +01:00
parent 1fb1a99a43
commit 65a5543efe
3 changed files with 22 additions and 1 deletions

View file

@ -322,6 +322,9 @@ var PDFViewerApplication = {
document.msFullscreenEnabled === false) {
support = false;
}
if (support && PDFJS.disableFullscreen === true) {
support = false;
}
return PDFJS.shadow(this, 'supportsFullscreen', support);
},