]> _ Git - fluidbook-html5.git/commitdiff
wait #4559 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Jun 2021 17:59:41 +0000 (19:59 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 25 Jun 2021 17:59:41 +0000 (19:59 +0200)
js/libs/fluidbook/fluidbook.links.js
js/libs/fluidbook/fluidbook.splash.js

index 446358eca6a8c0eeabded6ccde0b1c0626c359a8..d35d4e7aa859ccb61b1f01495df35aa4334f674d 100644 (file)
@@ -462,7 +462,7 @@ FluidbookLinks.prototype = {
     },
 
     initAnimatedContentsLinks: function () {
-        if (this.fluidbook.mobilefirst.enabled) {
+        if (this.fluidbook.mobilefirst.enabled || (this.fluidbook.splash.isVisible() && !this.fluidbook.splash.isHidding)) {
             return;
         }
         var $this = this;
index c6d81a3dc68775777388a7cfebc8cb7543f94892..98119b6600078c1a1d4cc9622ccc63a07c3dd2fa 100644 (file)
@@ -1,6 +1,7 @@
 function FluidbookSplash(fluidbook) {
     this.fluidbook = fluidbook;
     this.hideSplashTimeout = 1;
+    this.isHidding = false;
     this.init();
 }
 
@@ -70,6 +71,7 @@ FluidbookSplash.prototype = {
     },
 
     _hide: function () {
+        this.isHidding=true;
         var $this = this;
         var timeout = this.fluidbook.nointerface ? 0 : 700;
         this.fluidbook.resize.resize(false, true);
@@ -102,6 +104,7 @@ FluidbookSplash.prototype = {
 
         this.fluidbook.allowChangePage();
         $(this.fluidbook).trigger('fluidbook.splash.hide');
+        this.isHidding=false;
     },
 
 }
\ No newline at end of file