]> _ Git - fluidbook-html5.git/commitdiff
wip #7489 @5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Jul 2025 14:50:42 +0000 (16:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Jul 2025 14:50:42 +0000 (16:50 +0200)
js/libs/fluidbook/fluidbook.pagetransitions.js
js/libs/fluidbook/fluidbook.touch.js

index 5c2273b664d595df882078fff4317ab4bdbb9006..4b3140ae06ce2ff92db4c5b9e0cb3b65048824df 100644 (file)
@@ -46,6 +46,10 @@ FluidbookPageTransition.prototype = {
                 return "immediate";
             }
         }
+        return this.transitionType();
+    },
+
+    transitionType: function () {
         if (this.fluidbook.settings.mobileTransitions === 'fade') {
             if (this.fluidbook.displayOnePage) {
                 return 'fadeone';
@@ -80,7 +84,6 @@ FluidbookPageTransition.prototype = {
             return 'flip3d';
         }
         return 'flipcss';
-
     },
 
     pageTransition: function (pageNr, transitionType) {
index 5857107136337a1306bee20c7d6b5b74422077cf..5938a3cb0872cf7252c5e52a0f01aa6d5dc4c682 100644 (file)
@@ -162,7 +162,7 @@ FluidbookTouch.prototype = {
         if (this.panInited) {
             return;
         }
-        var $this=this;
+        var $this = this;
 
         this.panInited = true;
         if (panElementId === undefined) {
@@ -289,7 +289,7 @@ FluidbookTouch.prototype = {
 
             }
 
-            if(this.fluidbook.input.usingMouse){
+            if (this.fluidbook.input.usingMouse) {
                 return false;
             }
 
@@ -365,5 +365,8 @@ FluidbookTouch.prototype = {
 
         this.fluidbook.zoom.setOrigin(ox, oy, true);
     },
-};
 
+    elasticSlide: function () {
+        return this.fluidbook.settings.slideTransitionsElastic == '1' && ['slide', 'portrait', 'slidefullwidth'].indexOf(this.fluidbook.pagetransitions.transitionType()) >= 0;
+    }
+};
\ No newline at end of file