]> _ Git - fluidbook-html5.git/commitdiff
wip #1832 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Dec 2017 11:16:36 +0000 (12:16 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Dec 2017 11:16:36 +0000 (12:16 +0100)
js/libs/fluidbook/fluidbook.js

index 84cacfbb8bbbc64f31f5094e50445f0812a46936..6d2368c225d17a49a9e77e774ba8233a4a87bbac 100644 (file)
@@ -445,9 +445,11 @@ Fluidbook.prototype = {
         } else {
             $(move).removeClass('animate');
         }
+
+        var delay = this.support.android ? this.datas.mobileTransitionDuration * 1000 : 10;
         setTimeout(function () {
-            move.css('left', left);
-        }, 10);
+            move.transform({translateX: left + 'px'});
+        }, delay);
     },
 
     getTurningPages: function (newPage) {