From: Vincent Vanwaelscappel Date: Fri, 18 Jan 2019 15:42:05 +0000 (+0100) Subject: wait #2524 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=49dcc8c90273313c4f5c5d2199d5b47326c07e63;p=fluidbook-html5.git wait #2524 @0.75 --- diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index 5c6fc6e6..ff44fd03 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -528,13 +528,11 @@ Fluidbook.prototype = { animationDuration = 0; } animationDuration *= 1000; - var delay, duration; + var delay; if (animationDuration === 0) { delay = 0; - duration = 0; } else { delay = animationDuration; - duration = animationDuration * 0.3; } @@ -564,26 +562,16 @@ Fluidbook.prototype = { s_out.push(".right:not('.hidden')"); } - if (false && this.support.transitions2d && !this.support.iOS) { - var transitionIn = {transitionDuration: duration + 'ms', transitionDelay: delay + 'ms'}; - var transitionOut = {transitionDuration: (duration * .5) + 'ms', transitionDelay: '0ms'}; - if (s_in.length > 0) { - $(s).children(s_in.join(',')).css(transitionIn).removeClass('hidden'); - } - if (s_out.length > 0) { - $(s).children(s_out.join(',')).css(transitionOut).addClass('hidden'); - } - } else { - if (s_in.length > 0) { - setTimeout(function () { - $(s).children(s_in.join(',')).removeClass('hidden'); - }, delay); - } - if (s_out.length > 0) { - $(s).children(s_out.join(',')).addClass('hidden'); - } + if (s_in.length > 0) { + setTimeout(function () { + $(s).children(s_in.join(',')).removeClass('hidden'); + }, delay); } + if (s_out.length > 0) { + $(s).children(s_out.join(',')).addClass('hidden'); + } + }, showAllButtons: function () { $("#next,#previous").addClass('help').show(); diff --git a/js/libs/fluidbook/fluidbook.pagetransitions.js b/js/libs/fluidbook/fluidbook.pagetransitions.js index be593963..2e23ba99 100644 --- a/js/libs/fluidbook/fluidbook.pagetransitions.js +++ b/js/libs/fluidbook/fluidbook.pagetransitions.js @@ -389,6 +389,7 @@ FluidbookPageTransition.prototype = { this.fluidbook.links.initLinks(); this.fluidbook.hideLoader(); this.fluidbook.resetWaiters(); + this.fluidbook.updateShadows(page, 0); // Clean messy stuffs $("#pages").removeClass('_3dtransition'); if ($("#nextDoublePage").length > 0) { @@ -399,7 +400,7 @@ FluidbookPageTransition.prototype = { $("#currentDoublePage:gt(0)").remove(); } $("#nextDoublePage").remove(); - this.transitionning = false; + if (this.fluidbook.pad.enabled) { if (this.fluidbook.currentPage == this.fluidbook.datas.pages) { $("#down").css('opacity', 0); @@ -420,6 +421,9 @@ FluidbookPageTransition.prototype = { this.fluidbook.audiodescription.setupPages(); } + setTimeout(function () { + $this.transitionning = false; + }, 10) $(this.fluidbook).trigger('fluidbook.page.change.end', [this.fluidbook.currentPage]); },