From 7adff5ff1b4a59d03ac578a445b3ae032c2d921f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 10 May 2019 11:13:59 +0200 Subject: [PATCH] wait #2704 @0.5 --- js/libs/fluidbook/mobilefirst/fluidbook.mobilefirst.slider.js | 4 +++- style/mobilefirst.less | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/libs/fluidbook/mobilefirst/fluidbook.mobilefirst.slider.js b/js/libs/fluidbook/mobilefirst/fluidbook.mobilefirst.slider.js index 4d4c68c0..d7c8bc7e 100644 --- a/js/libs/fluidbook/mobilefirst/fluidbook.mobilefirst.slider.js +++ b/js/libs/fluidbook/mobilefirst/fluidbook.mobilefirst.slider.js @@ -59,9 +59,11 @@ FluidbookMobileFirstSlider.prototype = { }, updateScroll: function () { + if (this.element.hasClass('hiddenresp') || this.element.hasClass('hiddenzoom')) { + return; + } var h = this.element.find('.pagethumb').outerHeight(); var fluidbook = $("#fluidbook").get(0).getBoundingClientRect(); - console.log(fluidbook); var visiblePixels = this.fluidbook.resize.hh; if (fluidbook.top > 0) { diff --git a/style/mobilefirst.less b/style/mobilefirst.less index b7bb511f..433bc378 100644 --- a/style/mobilefirst.less +++ b/style/mobilefirst.less @@ -170,6 +170,7 @@ left: 0; transition: opacity 250ms; opacity: 1; + pointer-events: none; &.hidden, &.hiddenresp, &.hiddenzoom { opacity: 0; -- 2.39.5