From de1790ac7690ed1995dfc8eef3439c1172607fca Mon Sep 17 00:00:00 2001 From: Nico Opiyo Date: Thu, 7 Mar 2019 23:20:57 +0300 Subject: [PATCH] Fixed exit transition bug --- openlp/core/display/html/display.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openlp/core/display/html/display.js b/openlp/core/display/html/display.js index fe8d54ac8..e0bd72144 100644 --- a/openlp/core/display/html/display.js +++ b/openlp/core/display/html/display.js @@ -454,9 +454,11 @@ var Display = { alertBackground.addEventListener('animationend', function (e) { e.stopPropagation(); if (Display._animationState === AnimationState.ScrollingAnimation) { + console.debug("Scrolling animation finished"); alertText.classList.remove("horizontal-scroll-animation"); alertText.style.visibility = "hidden"; - Display._animationState = AnimationState.NoAnimation; + Display._animationState = AnimationState.NoAnimation; + Display.doExitTransition(); } }); }, @@ -486,7 +488,7 @@ var Display = { alertBackground.style.backgroundColor = settings.background_color; if (this._alertState === AlertState.DisplayingFromQueue) { - transitionSetting = "1s linear 1s"; + transitionSetting = "1s linear 2s"; } else { transitionSetting = "1s linear";