]> _ Git - fluidbook-html5.git/commitdiff
fix #2312 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 26 Oct 2018 13:06:15 +0000 (15:06 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 26 Oct 2018 13:06:15 +0000 (15:06 +0200)
js/libs/fluidbook/fluidbook.pagetransitions.js
js/libs/fluidbook/fluidbook.zoom.js

index 13504ec76a9a54d5d66a6fc085105de4bd769673..a77e5802a755f99800acfc53a19a7f8b637fe664 100644 (file)
@@ -12,6 +12,7 @@ FluidbookPageTransition.prototype = {
     },
 
     pageTransition: function (pageNr) {
+        var $this=this;
         if (this.fluidbook.pad.enabled) {
             this.transitionAxis = this.fluidbook.pad.getTransitionAxis(this.fluidbook.currentPage, page);
         } else {
@@ -47,7 +48,7 @@ FluidbookPageTransition.prototype = {
 
         if (this.fluidbook.support.transitions3dacc) {
             this.fluidbook.zoom.resetZoom(function(){
-                return this.pageTransition3DFlip(pageNr);
+                return $this.pageTransition3DFlip(pageNr);
             });
             return true;
         } else {
index 7885c1bdea10c2edfd0b77625998f91f0b0cf7f4..3a0a206fded02f72c92211b6adaff430c8f76f0d 100644 (file)
@@ -85,7 +85,6 @@ FluidbookZoom.prototype = {
         if (transition == undefined) {
             transition = true;
         }
-
         if (transition == false) {
             $("#z").addClass('notransition').removeClass('transition').removeClass('transition-inertia');
         } else {