]> _ Git - fluidbook-html5.git/commitdiff
try #7198 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Nov 2024 16:13:18 +0000 (17:13 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Nov 2024 16:13:18 +0000 (17:13 +0100)
js/libs/fluidbook/fluidbook.mobilefirst.js

index f8d9cd812fc9cd52f4bb2e17388e23631d0bbde8..519999a89a46432616ec6a73db612c31c71e68f6 100644 (file)
@@ -41,13 +41,13 @@ FluidbookMobileFirst.prototype = {
         this.fluidbook.settings.soundTheme = '';
     },
 
-    checkScroll: function () {
+    checkScroll: function (revealDelay) {
         if (this.transitioning) {
             return;
         }
 
         this.checkFooterNavReveal();
-        this.checkLinksReveal();
+        this.checkLinksReveal(revealDelay);
     },
 
     checkFooterNavReveal: function () {
@@ -62,12 +62,14 @@ FluidbookMobileFirst.prototype = {
         }
     },
 
-    checkLinksReveal: function () {
+    checkLinksReveal: function (delay) {
         if (this.transitioning) {
             return;
         }
         var $this = this;
-        var delay = 800;
+        if (delay === undefined) {
+            delay = 800;
+        }
         $("#links .link:not(.revealed):visible, .clinks [data-animations]:not(.revealed)").each(function () {
             var rect = $(this).get(0).getBoundingClientRect();
             if (rect.top === 0 && rect.left === 0 && rect.width === 0 && rect.height === 0) {
@@ -128,7 +130,7 @@ FluidbookMobileFirst.prototype = {
             this.transitioning = false;
             var $this = this;
             setTimeout(function () {
-                $this.checkScroll();
+                $this.checkScroll(0);
             }, 200);
 
             setTimeout(function () {