]> _ Git - fluidbook-html5.git/commitdiff
wait #5158 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Apr 2022 13:10:59 +0000 (15:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Apr 2022 13:10:59 +0000 (15:10 +0200)
js/libs/fluidbook/fluidbook.zoom.js

index 97fff06e8fc9154744d00c160ded68155e191cbc..e56bce201386e847fa91e8825ca65638090150a1 100644 (file)
@@ -92,7 +92,9 @@ FluidbookZoom.prototype = {
             if ($("body").is('.view, .menu-open')) {
                 return returnValue;
             }
-
+            if (e.deltaY < 0) {
+                $this.fluidbook.desktop.moveZoom(e, true);
+            }
             $this.wheelZoom(e.deltaY * -1);
             return returnValue;
         }, {passive: false});