]> _ Git - fluidbook-html5.git/commitdiff
wait #4407 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Apr 2021 10:27:33 +0000 (12:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Apr 2021 10:27:33 +0000 (12:27 +0200)
js/libs/fluidbook/fluidbook.links.js
style/fluidbook.less

index 7da4edadc9abc278bae6d2cca42f2b9fbdec0a2e..e608feb62ad44c81519d9b4b716f44f80a6702b1 100644 (file)
@@ -55,6 +55,11 @@ FluidbookLinks.prototype = {
             return true;
         });
 
+        $(document).on('click touchend', '.multimediaContainer[data-click-to-close="1"]', function () {
+            $this.fluidbook.menu.closeView();
+            return false;
+        });
+
         $(document).on('click', '[href^="#"]:not([href="#"])', function () {
             location.hash = $(this).attr('href');
             return false;
@@ -861,7 +866,7 @@ FluidbookLinks.prototype = {
             var iw = w * $this.fluidbook.resize.bookScale;
             var ih = h * $this.fluidbook.resize.bookScale;
             if (scale !== 'no') {
-                if(scale==='auto') {
+                if (scale === 'auto') {
                     scale = (1 / $this.fluidbook.resize.bookScale);
                 }
                 $(iframe).attr("width", iw)
index 2f7d56aab86bf82e301261c83dae26999e925dfc..4d57110a92885f6a1c374a91fc9f2fd4e05fb64b 100644 (file)
@@ -2296,6 +2296,10 @@ ul.chapters.shareList a.level0 .svg-icon {
       left: 0;
       pointer-events: auto;
     }
+
+    &[data-click-to-close="1"]{
+      cursor: pointer;
+    }
   }
 
   img.multimedia {