]> _ Git - fluidbook-html5.git/commitdiff
wip #1487 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 14 Aug 2017 15:07:02 +0000 (17:07 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 14 Aug 2017 15:07:02 +0000 (17:07 +0200)
js/libs/fluidbook/fluidbook.desktop.js

index 6f14ef07a38f1e48220fbc4c435bb30a5cbdb338..5d95e0c8feb2cb3ddb6a14b7940fc47197762740 100644 (file)
@@ -37,7 +37,7 @@ FluidbookDesktop.prototype = {
     },
     clickZoom: function (e, way) {
         if (way == undefined) {
-            if (this.zoom == 1) {
+            if (this.fluidbook.zoom.zoom == 1) {
                 way = 1;
             } else {
                 way = -1;
@@ -50,7 +50,7 @@ FluidbookDesktop.prototype = {
             newScale = 1;
         }
         this.moveZoom(e, true)
-        this.setZoom(newScale);
+        this.fluidbook.zoom.setZoom(newScale);
         return false;
     },
     wheelZoom: function (delta) {