From: Vincent Vanwaelscappel Date: Mon, 14 Aug 2017 15:07:02 +0000 (+0200) Subject: wip #1487 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=14971dc0db8938791438e729913708340c62b023;p=fluidbook-html5.git wip #1487 @2 --- diff --git a/js/libs/fluidbook/fluidbook.desktop.js b/js/libs/fluidbook/fluidbook.desktop.js index 6f14ef07..5d95e0c8 100644 --- a/js/libs/fluidbook/fluidbook.desktop.js +++ b/js/libs/fluidbook/fluidbook.desktop.js @@ -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) {