From: Vincent Vanwaelscappel Date: Wed, 20 Nov 2024 16:13:18 +0000 (+0100) Subject: try #7198 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=04dde4aab20249dd857b09e1d44c84b9a9064159;p=fluidbook-html5.git try #7198 @0:10 --- diff --git a/js/libs/fluidbook/fluidbook.mobilefirst.js b/js/libs/fluidbook/fluidbook.mobilefirst.js index f8d9cd81..519999a8 100644 --- a/js/libs/fluidbook/fluidbook.mobilefirst.js +++ b/js/libs/fluidbook/fluidbook.mobilefirst.js @@ -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 () {