]> _ Git - fluidbook-html5.git/commitdiff
wait #4599 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jul 2021 16:41:50 +0000 (18:41 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jul 2021 16:41:50 +0000 (18:41 +0200)
js/libs/fluidbook/fluidbook.links.js

index 57707785a47f82c8bf0f8b08f368d2c16be4f9a9..d5df0bf4e64c0830668423bac1205d31266a1c12 100644 (file)
@@ -476,7 +476,7 @@ FluidbookLinks.prototype = {
         }
         var $this = this;
 
-        $(".contentLink[data-animations]").each(function () {
+        $("#currentDoublePage,#links").find('.contentLink[data-animations]').each(function () {
             $this.animateContentLink($(this), true);
         });
     },
@@ -494,7 +494,7 @@ FluidbookLinks.prototype = {
         var defaults = ['ease', 'duration', 'delay'];
         var firstDefaults = {};
 
-        if (animations.length === 0) {
+        if (animations === undefined || animations === null || animations.length === 0) {
             return;
         }
         if (animations[0]["autostart"] === undefined) {
@@ -593,12 +593,13 @@ FluidbookLinks.prototype = {
             from.backgroundPosition = to.backgroudPosition = animation.transformorigin;
             from.backgroundSize = animation.type === 'zoomin' ? '100% 100%' : s + ' ' + s;
             to.backgroundSize = animation.type === 'zoomout' ? '100% 100%' : s + ' ' + s;
-            to.visibility = 'visible';
+            //to.visibility = 'visible';
             if (Modernizr.firefox) {
                 to.force3D = true;
                 to.rotation = 0.01;
                 from.rotation = 0.01;
             }
+
         } else if (animation.type === 'fadein') {
             from.display = 'none';
             to.display = 'block';