Commit 84a44cc0 authored by Oleg Korshul's avatar Oleg Korshul Committed by GitHub

Merge pull request #71 from ONLYOFFICE/hotfix/v4.1.2

play->pause->play bug & smart transition on resize window
parents e3560044 4cd45f80
...@@ -3091,6 +3091,7 @@ function CDemonstrationManager(htmlpage) ...@@ -3091,6 +3091,7 @@ function CDemonstrationManager(htmlpage)
{ {
oThis.CheckSlideDuration = setTimeout(function() oThis.CheckSlideDuration = setTimeout(function()
{ {
oThis.CheckSlideDuration = -1;
if (oThis.IsPlayMode) if (oThis.IsPlayMode)
{ {
oThis.SlideNum++; oThis.SlideNum++;
...@@ -3208,6 +3209,11 @@ function CDemonstrationManager(htmlpage) ...@@ -3208,6 +3209,11 @@ function CDemonstrationManager(htmlpage)
this.Play = function() this.Play = function()
{ {
this.IsPlayMode = true; this.IsPlayMode = true;
if (-1 == this.CheckSlideDuration)
{
this.NextSlide();
}
} }
this.Pause = function() this.Pause = function()
...@@ -3361,6 +3367,6 @@ function CDemonstrationManager(htmlpage) ...@@ -3361,6 +3367,6 @@ function CDemonstrationManager(htmlpage)
} }
if (this.SlideNum < this.SlidesCount) if (this.SlideNum < this.SlidesCount)
this.StartSlide(true, false); this.StartSlide(this.Transition.IsPlaying(), false);
} }
} }
\ No newline at end of file
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