[PE] Disable fullscreen in IE11 in preview mode because of bug in IE11 (https://github.com/jquery/jquery/issues/3041).
This commit is contained in:
parent
ec4eb281f6
commit
7e8481d17b
|
@ -133,7 +133,7 @@ define([
|
||||||
|
|
||||||
Common.component.Analytics.trackEvent('Status Bar', 'Preview');
|
Common.component.Analytics.trackEvent('Status Bar', 'Preview');
|
||||||
};
|
};
|
||||||
if (!me.statusbar.mode.isDesktopApp) {
|
if (!me.statusbar.mode.isDesktopApp && !Common.Utils.isIE11) {
|
||||||
Common.NotificationCenter.on('window:resize', onWindowResize);
|
Common.NotificationCenter.on('window:resize', onWindowResize);
|
||||||
me.fullScreen(document.documentElement);
|
me.fullScreen(document.documentElement);
|
||||||
} else
|
} else
|
||||||
|
|
|
@ -771,7 +771,7 @@ define([
|
||||||
me.api.StartDemonstration('presentation-preview', _.isNumber(slidenum) ? slidenum : 0);
|
me.api.StartDemonstration('presentation-preview', _.isNumber(slidenum) ? slidenum : 0);
|
||||||
Common.component.Analytics.trackEvent('ToolBar', 'Preview');
|
Common.component.Analytics.trackEvent('ToolBar', 'Preview');
|
||||||
};
|
};
|
||||||
if (!me.toolbar.mode.isDesktopApp) {
|
if (!me.toolbar.mode.isDesktopApp && !Common.Utils.isIE11) {
|
||||||
Common.NotificationCenter.on('window:resize', onWindowResize);
|
Common.NotificationCenter.on('window:resize', onWindowResize);
|
||||||
me.fullScreen(document.documentElement);
|
me.fullScreen(document.documentElement);
|
||||||
} else
|
} else
|
||||||
|
|
|
@ -1301,7 +1301,7 @@ define([
|
||||||
Common.NotificationCenter.off('window:resize', onWindowResize);
|
Common.NotificationCenter.off('window:resize', onWindowResize);
|
||||||
me.api.StartDemonstration('presentation-preview', 0);
|
me.api.StartDemonstration('presentation-preview', 0);
|
||||||
};
|
};
|
||||||
if (!me.mode.isDesktopApp) {
|
if (!me.mode.isDesktopApp && !Common.Utils.isIE11) {
|
||||||
Common.NotificationCenter.on('window:resize', onWindowResize);
|
Common.NotificationCenter.on('window:resize', onWindowResize);
|
||||||
me.fullScreen(document.documentElement);
|
me.fullScreen(document.documentElement);
|
||||||
} else
|
} else
|
||||||
|
@ -1569,7 +1569,7 @@ define([
|
||||||
|
|
||||||
Common.component.Analytics.trackEvent('DocumentHolder', 'Preview');
|
Common.component.Analytics.trackEvent('DocumentHolder', 'Preview');
|
||||||
};
|
};
|
||||||
if (!me.mode.isDesktopApp) {
|
if (!me.mode.isDesktopApp && !Common.Utils.isIE11) {
|
||||||
Common.NotificationCenter.on('window:resize', onWindowResize);
|
Common.NotificationCenter.on('window:resize', onWindowResize);
|
||||||
me.fullScreen(document.documentElement);
|
me.fullScreen(document.documentElement);
|
||||||
} else
|
} else
|
||||||
|
|
|
@ -296,7 +296,7 @@ define([
|
||||||
|
|
||||||
setMode: function(mode) {
|
setMode: function(mode) {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
if (this.mode.isDesktopApp) {
|
if (this.mode.isDesktopApp || Common.Utils.isIE11) {
|
||||||
this.btnFullScreen.setVisible(false);
|
this.btnFullScreen.setVisible(false);
|
||||||
this.separatorFullScreen.hide();
|
this.separatorFullScreen.hide();
|
||||||
$(document).off("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange");
|
$(document).off("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange");
|
||||||
|
@ -336,7 +336,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
fullScreen: function(element) {
|
fullScreen: function(element) {
|
||||||
if (this.mode.isDesktopApp) return;
|
if (this.mode.isDesktopApp || Common.Utils.isIE11) return;
|
||||||
if (element) {
|
if (element) {
|
||||||
if(element.requestFullscreen) {
|
if(element.requestFullscreen) {
|
||||||
element.requestFullscreen();
|
element.requestFullscreen();
|
||||||
|
@ -351,7 +351,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
fullScreenCancel: function () {
|
fullScreenCancel: function () {
|
||||||
if (this.mode.isDesktopApp) return;
|
if (this.mode.isDesktopApp || Common.Utils.isIE11) return;
|
||||||
if(document.cancelFullScreen) {
|
if(document.cancelFullScreen) {
|
||||||
document.cancelFullScreen();
|
document.cancelFullScreen();
|
||||||
} else if(document.webkitCancelFullScreen ) {
|
} else if(document.webkitCancelFullScreen ) {
|
||||||
|
|
Loading…
Reference in a new issue