]> _ Git - fluidbook-html5.git/commitdiff
wip #7940 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 20 Jan 2026 13:22:33 +0000 (14:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 20 Jan 2026 13:26:19 +0000 (14:26 +0100)
js/libs/fluidbook/fluidbook.loader.js
js/libs/fluidbook/fluidbook.pagetransitions.js

index 78168f9b4f742e4cf0a76a1581c3e4cad4147e35..b305be229d6966b177c3eee826e0d7617dad39d7 100644 (file)
@@ -630,6 +630,10 @@ FluidbookLoader.prototype = {
     },
 
     loadTexture: function (page, callback, enter) {
+        if (!this.fluidbook.pagetransitions.mayUseFlip3D()) {
+            callback();
+            return;
+        }
         if (enter === undefined) {
             enter = true;
         }
index a1caa1fc2ce24a827e973c0ba0c229080f95c4c1..d90700bbff2694e7e5df4fca2867b2c2d4328f62 100644 (file)
@@ -81,12 +81,16 @@ FluidbookPageTransition.prototype = {
                 return 'flipcss';
             }
         }
-        if (this.fluidbook.support.transitions3dacc && this.fluidbook.settings.mobileTransitions === 'flip3d' && this.fluidbook.support.datauriallowed) {
+        if (this.mayUseFlip3D()) {
             return 'flip3d';
         }
         return 'flipcss';
     },
 
+    mayUseFlip3D: function () {
+        return this.fluidbook.support.transitions3dacc && this.fluidbook.settings.mobileTransitions === 'flip3d' && this.fluidbook.support.datauriallowed;
+    },
+
     pageTransition: function (pageNr, transitionType) {
         var $this = this;
         if (this.fluidbook.pad.enabled) {