Commit 7e8481d1 authored by Julia Radzhabova's avatar Julia Radzhabova

[PE] Disable fullscreen in IE11 in preview mode because of bug in IE11...

[PE] Disable fullscreen in IE11 in preview mode because of bug in IE11 (https://github.com/jquery/jquery/issues/3041).
parent ec4eb281
......@@ -133,7 +133,7 @@ define([
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);
me.fullScreen(document.documentElement);
} else
......
......@@ -771,7 +771,7 @@ define([
me.api.StartDemonstration('presentation-preview', _.isNumber(slidenum) ? slidenum : 0);
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);
me.fullScreen(document.documentElement);
} else
......
......@@ -1301,7 +1301,7 @@ define([
Common.NotificationCenter.off('window:resize', onWindowResize);
me.api.StartDemonstration('presentation-preview', 0);
};
if (!me.mode.isDesktopApp) {
if (!me.mode.isDesktopApp && !Common.Utils.isIE11) {
Common.NotificationCenter.on('window:resize', onWindowResize);
me.fullScreen(document.documentElement);
} else
......@@ -1569,7 +1569,7 @@ define([
Common.component.Analytics.trackEvent('DocumentHolder', 'Preview');
};
if (!me.mode.isDesktopApp) {
if (!me.mode.isDesktopApp && !Common.Utils.isIE11) {
Common.NotificationCenter.on('window:resize', onWindowResize);
me.fullScreen(document.documentElement);
} else
......
......@@ -296,7 +296,7 @@ define([
setMode: function(mode) {
this.mode = mode;
if (this.mode.isDesktopApp) {
if (this.mode.isDesktopApp || Common.Utils.isIE11) {
this.btnFullScreen.setVisible(false);
this.separatorFullScreen.hide();
$(document).off("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange");
......@@ -336,7 +336,7 @@ define([
},
fullScreen: function(element) {
if (this.mode.isDesktopApp) return;
if (this.mode.isDesktopApp || Common.Utils.isIE11) return;
if (element) {
if(element.requestFullscreen) {
element.requestFullscreen();
......@@ -351,7 +351,7 @@ define([
},
fullScreenCancel: function () {
if (this.mode.isDesktopApp) return;
if (this.mode.isDesktopApp || Common.Utils.isIE11) return;
if(document.cancelFullScreen) {
document.cancelFullScreen();
} else if(document.webkitCancelFullScreen ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment