[PE] Don't open slideshow in fullscreen on sdk event

This commit is contained in:
Julia Radzhabova 2021-10-20 22:01:00 +03:00
parent b9fbc6de71
commit 11d39cc414
2 changed files with 3 additions and 3 deletions

View file

@ -375,7 +375,7 @@ define([
Common.NotificationCenter.trigger('window:resize');
},
onPreviewStart: function(slidenum, presenter) {
onPreviewStart: function(slidenum, presenter, fromApiEvent) {
this.previewPanel = this.previewPanel || this.getView('DocumentPreview');
var me = this,
isResized = false;
@ -406,7 +406,7 @@ define([
};
if (!me.viewport.mode.isDesktopApp && !Common.Utils.isIE11 && !presenter) {
Common.NotificationCenter.on('window:resize', _onWindowResize);
me.fullScreen(document.documentElement);
!fromApiEvent && me.fullScreen(document.documentElement);
setTimeout(function(){
_onWindowResize();
}, 100);

View file

@ -1483,7 +1483,7 @@ define([
var onApiStartDemonstration = function() {
if (me.slidesCount>0) {
Common.NotificationCenter.trigger('preview:start', 0);
Common.NotificationCenter.trigger('preview:start', 0, null, true);
}
};