From: Vincent Vanwaelscappel Date: Thu, 15 Apr 2021 10:27:33 +0000 (+0200) Subject: wait #4407 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d25746f0a21486e45c1258962b22f7bcfc176966;p=fluidbook-html5.git wait #4407 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 7da4edad..e608feb6 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -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) diff --git a/style/fluidbook.less b/style/fluidbook.less index 2f7d56aa..4d57110a 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -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 {