]> _ Git - fluidbook-html5.git/commitdiff
wip #5158 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 1 Apr 2022 16:26:28 +0000 (18:26 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 1 Apr 2022 16:26:28 +0000 (18:26 +0200)
js/libs/fluidbook/fluidbook.zoom.js

index 66bc77d5c2ae35b29a20c97a9d4a49bd0205fdf1..6b9b371aad950f8d1dd5ba505c30bc6a29cf96a4 100644 (file)
@@ -38,7 +38,7 @@ FluidbookZoom.prototype = {
         $(document).on(this.fluidbook.input.clickEvent, '.icon-zoomin', function (e) {
             if ($this.fluidbook.settings.zoomMouseMoveMode !== 'dragndrop') {
                 $this.fluidbook.desktop.moveZoom(e, true);
-            } else {
+            } else if ($this.zoom === 1) {
                 $this.fluidbook.zoom.setOriginPct(0.5, 0.5, true);
             }
             $this.fluidbook.zoom.zoomInFromMenu();