]> _ Git - fluidbook-html5.git/commitdiff
fix #1468 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Jun 2017 17:25:21 +0000 (19:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Jun 2017 17:25:21 +0000 (19:25 +0200)
js/libs/fluidbook/fluidbook.zoom.js

index 807330109d2be6b1ecbd896c22dfd0109e6b1707..341efd336556ff0475bbfb749fdb046c586c7973 100644 (file)
@@ -49,14 +49,16 @@ FluidbookZoom.prototype = {
         if (this.zoom == zoom) {
             return;
         }
-        if (this.transition) {
+        if (!this.transition) {
             if (direction == 1) {
-                if (zoom < 1.5) {
+                if (zoom < 1.25) {
                     zoom = 2;
+                    this.setTransition(true);
                 }
             } else if (direction == -1) {
-                if (zoom < 1.5) {
+                if (zoom < 1.25) {
                     zoom = 1;
+                    this.setTransition(true);
                 }
             }
         }