]> _ Git - fluidbook-html5.git/commitdiff
fix #2713 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 May 2019 16:36:17 +0000 (18:36 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 9 May 2019 16:36:17 +0000 (18:36 +0200)
js/libs/fluidbook/fluidbook.mobilefirst.js
style/mobilefirst.less

index 7ae59c938dedc2e6c839c9f6b47f0e766fabfa5c..c03ff14343f8c17a0bcb4f5b7d48a95d4b8d51b5 100644 (file)
@@ -18,6 +18,15 @@ FluidbookMobileFirst.prototype = {
         $("#scroll").on('scroll', function () {
             $this.checkScroll($(this).scrollTop());
         });
+
+        $(this.fluidbook).on('fluidbook.zoom.in.start', function () {
+            $("#pages .mf-nav").addClass('hiddenzoom');
+        });
+
+        $(this.fluidbook).on('fluidbook.zoom.out.end', function () {
+            $("#pages .mf-nav").removeClass('hiddenzoom');
+        });
+
         this.fluidbook.datas.soundTheme = '';
     },
 
index 64d2349eb9737cdfa52c6cf31dcdd43a69338b8f..e2bdfdf6ff0b17000f0edf05c8a814cc8885948d 100644 (file)
   font-weight: 600;
   transition: opacity .15s;
 
+  &.hiddenzoom {
+    opacity: 0 !important;
+  }
+
   @media @small {
     @s: 1.25;
     font-size: unit(20*@s*@css-scale*@mfscale, px);