From d25746f0a21486e45c1258962b22f7bcfc176966 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 15 Apr 2021 12:27:33 +0200 Subject: [PATCH] wait #4407 @0.5 --- js/libs/fluidbook/fluidbook.links.js | 7 ++++++- style/fluidbook.less | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 { -- 2.39.5