]> _ Git - fluidbook-html5.git/commitdiff
wait #5091 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 14 Feb 2022 10:09:38 +0000 (11:09 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 14 Feb 2022 10:09:38 +0000 (11:09 +0100)
js/libs/fluidbook/fluidbook.links.js

index 5ed6c9408f33f2b6cd338b77917111419d87be96..a2e5807221476116f24953c7d94aaf448d886ab6 100644 (file)
@@ -585,6 +585,12 @@ FluidbookLinks.prototype = {
         if (animation.ease === undefined) {
             animation.ease = "Power1.easeOut";
         }
+        if (animation.rotate !== undefined) {
+            animation.rotation = animation.rotate;
+        }
+        if (animation.rotation !== undefined) {
+            from.rotation = animation.rotation;
+        }
         to.ease = animation.ease;
 
         if (animation.delay !== undefined) {
@@ -631,8 +637,8 @@ FluidbookLinks.prototype = {
             //to.visibility = 'visible';
             if (Modernizr.firefox) {
                 to.force3D = true;
-                to.rotation = 0.01;
-                from.rotation = 0.01;
+                from.rotation += 0.01;
+                to.rotation = from.rotation;
             }
 
         } else if (animation.type === 'fadein') {