mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 04:04:35 +08:00
[PE] Fix Bug 63863
This commit is contained in:
@ -284,7 +284,7 @@ define([
|
||||
me.api.StartDemonstration('presentation-preview', _.isNumber(slidenum) ? slidenum : 0, reporterObject);
|
||||
Common.component.Analytics.trackEvent('Viewport', 'Preview');
|
||||
};
|
||||
if (!me.viewport.mode.isDesktopApp && !Common.Utils.isIE11 && !presenter) {
|
||||
if (!me.viewport.mode.isDesktopApp && !Common.Utils.isIE11 && !presenter && !!document.fullscreenEnabled) {
|
||||
Common.NotificationCenter.on('window:resize', _onWindowResize);
|
||||
!fromApiEvent && me.fullScreen(document.documentElement);
|
||||
setTimeout(function(){
|
||||
|
||||
@ -346,7 +346,7 @@ define([
|
||||
|
||||
setMode: function(mode) {
|
||||
this.mode = mode;
|
||||
if (this.mode.isDesktopApp || Common.Utils.isIE11) {
|
||||
if (this.mode.isDesktopApp || Common.Utils.isIE11 || !document.fullscreenEnabled) {
|
||||
this.btnFullScreen.setVisible(false);
|
||||
this.separatorFullScreen.hide();
|
||||
$(document).off("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange");
|
||||
|
||||
Reference in New Issue
Block a user