Merge pull request #3667 from thorlarholm/iefullscreen
Support for fullscreen presentationMode in Internet Explorer
This commit is contained in:
commit
50c4f482c8
@ -64,6 +64,20 @@ select {
|
|||||||
cursor: none;
|
cursor: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#viewerContainer:-ms-fullscreen {
|
||||||
|
top: 0px !important;
|
||||||
|
border-top: 2px solid transparent;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden !important;
|
||||||
|
cursor: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#viewerContainer:-ms-fullscreen::-ms-backdrop {
|
||||||
|
background-color: #404040;
|
||||||
|
background-image: url(images/texture.png);
|
||||||
|
}
|
||||||
|
|
||||||
#viewerContainer:fullscreen {
|
#viewerContainer:fullscreen {
|
||||||
top: 0px;
|
top: 0px;
|
||||||
border-top: 2px solid transparent;
|
border-top: 2px solid transparent;
|
||||||
@ -83,6 +97,10 @@ select {
|
|||||||
margin-bottom: 100%;
|
margin-bottom: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:-ms-fullscreen .page {
|
||||||
|
margin-bottom: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
:fullscreen .page {
|
:fullscreen .page {
|
||||||
margin-bottom: 100%;
|
margin-bottom: 100%;
|
||||||
}
|
}
|
||||||
@ -95,6 +113,10 @@ select {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:-ms-fullscreen a:not(.internalLink) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
:fullscreen a:not(.internalLink) {
|
:fullscreen a:not(.internalLink) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -392,11 +392,12 @@ var PDFView = {
|
|||||||
get supportsFullscreen() {
|
get supportsFullscreen() {
|
||||||
var doc = document.documentElement;
|
var doc = document.documentElement;
|
||||||
var support = doc.requestFullscreen || doc.mozRequestFullScreen ||
|
var support = doc.requestFullscreen || doc.mozRequestFullScreen ||
|
||||||
doc.webkitRequestFullScreen;
|
doc.webkitRequestFullScreen || doc.msRequestFullscreen;
|
||||||
|
|
||||||
if (document.fullscreenEnabled === false ||
|
if (document.fullscreenEnabled === false ||
|
||||||
document.mozFullScreenEnabled === false ||
|
document.mozFullScreenEnabled === false ||
|
||||||
document.webkitFullscreenEnabled === false ) {
|
document.webkitFullscreenEnabled === false ||
|
||||||
|
document.msFullscreenEnabled === false) {
|
||||||
support = false;
|
support = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1386,7 +1387,8 @@ var PDFView = {
|
|||||||
presentationMode: function pdfViewPresentationMode() {
|
presentationMode: function pdfViewPresentationMode() {
|
||||||
var isPresentationMode = document.fullscreenElement ||
|
var isPresentationMode = document.fullscreenElement ||
|
||||||
document.mozFullScreen ||
|
document.mozFullScreen ||
|
||||||
document.webkitIsFullScreen;
|
document.webkitIsFullScreen ||
|
||||||
|
document.msFullscreenElement;
|
||||||
|
|
||||||
if (isPresentationMode) {
|
if (isPresentationMode) {
|
||||||
return false;
|
return false;
|
||||||
@ -1399,6 +1401,8 @@ var PDFView = {
|
|||||||
wrapper.mozRequestFullScreen();
|
wrapper.mozRequestFullScreen();
|
||||||
} else if (document.documentElement.webkitRequestFullScreen) {
|
} else if (document.documentElement.webkitRequestFullScreen) {
|
||||||
wrapper.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
|
wrapper.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
|
||||||
|
} else if (document.documentElement.msRequestFullscreen) {
|
||||||
|
wrapper.msRequestFullscreen();
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2830,7 +2834,8 @@ window.addEventListener('afterprint', function afterPrint(evt) {
|
|||||||
function presentationModeChange(e) {
|
function presentationModeChange(e) {
|
||||||
var isPresentationMode = document.fullscreenElement ||
|
var isPresentationMode = document.fullscreenElement ||
|
||||||
document.mozFullScreen ||
|
document.mozFullScreen ||
|
||||||
document.webkitIsFullScreen;
|
document.webkitIsFullScreen ||
|
||||||
|
document.msFullscreenElement;
|
||||||
|
|
||||||
if (isPresentationMode) {
|
if (isPresentationMode) {
|
||||||
PDFView.enterPresentationMode();
|
PDFView.enterPresentationMode();
|
||||||
@ -2843,6 +2848,7 @@ window.addEventListener('afterprint', function afterPrint(evt) {
|
|||||||
window.addEventListener('mozfullscreenchange', presentationModeChange, false);
|
window.addEventListener('mozfullscreenchange', presentationModeChange, false);
|
||||||
window.addEventListener('webkitfullscreenchange', presentationModeChange,
|
window.addEventListener('webkitfullscreenchange', presentationModeChange,
|
||||||
false);
|
false);
|
||||||
|
window.addEventListener('MSFullscreenChange', presentationModeChange, false);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
(function animationStartedClosure() {
|
(function animationStartedClosure() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user