From: Vincent Vanwaelscappel Date: Wed, 23 Aug 2023 13:43:45 +0000 (+0200) Subject: wait #6210 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4ca1da09f1d15b305b31964f0a8de5a83e0726c0;p=fluidbook-html5.git wait #6210 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 2c995abd..62443214 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -69,7 +69,7 @@ FluidbookLinks.prototype = { $(this.fluidbook).on('fluidbook.page.change.end', function () { if ($this.lastTriggeredLinksPage == $this.fluidbook.currentPage) { - // return; + // return; } $this.lastTriggeredLinksPage = $this.fluidbook.currentPage; var pages = $this.fluidbook.getDisplayedPages(); @@ -275,11 +275,10 @@ FluidbookLinks.prototype = { var current = $(this).data('current-showid'); if (current === undefined) { $.each(ids, function (k, id) { - if ($('[data-id="' + id + '"].show').length > 0) { - current = id; - } + if ($('[data-id="' + id + '"].show').length > 0) { + current = id; } - ); + }); } if (current === undefined) { showid = [ids[0]]; @@ -508,7 +507,6 @@ FluidbookLinks.prototype = { var attached = $('.link[data-id="' + $(this).data('attached') + '"]'); var visible = true; if (attached.length === 0 || !$(attached).is(':visible') || ($(attached).attr('data-hidden') === '1' && !$(attached).hasClass('show'))) { - console.log(attached, this); visible = false; } diff --git a/js/libs/fluidbook/fluidbook.mobilefirst.js b/js/libs/fluidbook/fluidbook.mobilefirst.js index 157494eb..f8d9cd81 100644 --- a/js/libs/fluidbook/fluidbook.mobilefirst.js +++ b/js/libs/fluidbook/fluidbook.mobilefirst.js @@ -87,7 +87,7 @@ FluidbookMobileFirst.prototype = { } else if ($(this).is('[data-animations]')) { var $link = this; setTimeout(function () { - $this.fluidbook.links.animateContentLink($link); + $this.fluidbook.links.animateContentLink($link, true); }, delay); } } @@ -270,8 +270,7 @@ FluidbookMobileFirst.prototype = { }, 500); $(".indexViewHolder").perfectScrollbar({ - suppressScrollY: true, - useBothWheelAxes: true + suppressScrollY: true, useBothWheelAxes: true }); $(".indexViewHolder").find('.ps__rail-x').addClass('ps--clicking');