]> _ Git - fluidbook-html5.git/commitdiff
wait #6210 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Aug 2023 13:43:45 +0000 (15:43 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 23 Aug 2023 13:43:45 +0000 (15:43 +0200)
js/libs/fluidbook/fluidbook.links.js
js/libs/fluidbook/fluidbook.mobilefirst.js

index 2c995abd17686995e516e8c858fbabee3e81ac7e..62443214b1ff088c356417ec4f81e16ca12c995d 100644 (file)
@@ -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;
             }
 
index 157494ebc2f39c5d4ccf7e18681d2c650f0e5e85..f8d9cd812fc9cd52f4bb2e17388e23631d0bbde8 100644 (file)
@@ -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');