]> _ Git - fluidbook-html5.git/commitdiff
wip #2320 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Oct 2018 13:39:55 +0000 (14:39 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Oct 2018 13:39:55 +0000 (14:39 +0100)
js/libs/fluidbook/fluidbook.pagetransitions.js
style/fluidbook.less

index a77e5802a755f99800acfc53a19a7f8b637fe664..7fcc85480d0494d8e9eb7e7b2c45653ca73ce504 100644 (file)
@@ -12,7 +12,7 @@ FluidbookPageTransition.prototype = {
     },
 
     pageTransition: function (pageNr) {
-        var $this=this;
+        var $this = this;
         if (this.fluidbook.pad.enabled) {
             this.transitionAxis = this.fluidbook.pad.getTransitionAxis(this.fluidbook.currentPage, page);
         } else {
@@ -47,7 +47,7 @@ FluidbookPageTransition.prototype = {
         }
 
         if (this.fluidbook.support.transitions3dacc) {
-            this.fluidbook.zoom.resetZoom(function(){
+            this.fluidbook.zoom.resetZoom(function () {
                 return $this.pageTransition3DFlip(pageNr);
             });
             return true;
@@ -190,12 +190,12 @@ FluidbookPageTransition.prototype = {
     },
 
     centerBookEnabled: function () {
-        return !!this.fluidbook.datas.centerBook && !this.fluidbook.displayOnePage && $('.tabslink').length === 0 && !this.fluidbook.support.transitions3dacc;
+        return !!this.fluidbook.datas.centerBook && !this.fluidbook.displayOnePage && $('.tabslink').length === 0;
     },
 
     centerBook: function (center, animationDuration) {
         var animate = animationDuration != undefined && animationDuration > 0;
-        var move = $("#center-fluidbook,#center-shadow");
+        var move = $("#center-fluidbook,#center-shadow,#flip3dcontainer");
         var currentLeft = $("#center-fluidbook").data('left');
         var left = 0;
         if (center == undefined) {
index c1de30fcda7cb2058fe10298d9b5fa6013e6229a..cb11d36ba2673b639fc2cd148ab54683f1900b5f 100644 (file)
@@ -618,7 +618,7 @@ body, html {
 @import "slider";
 
 /* Center */
-#center-fluidbook, #center-shadow {
+#center-fluidbook, #center-shadow, #flip3dcontainer {
        position: absolute;
        top: 0;
        left: 0;