animationDuration = 0;
}
animationDuration *= 1000;
- var delay, duration;
+ var delay;
if (animationDuration === 0) {
delay = 0;
- duration = 0;
} else {
delay = animationDuration;
- duration = animationDuration * 0.3;
}
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();
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) {
$("#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);
this.fluidbook.audiodescription.setupPages();
}
+ setTimeout(function () {
+ $this.transitionning = false;
+ }, 10)
$(this.fluidbook).trigger('fluidbook.page.change.end', [this.fluidbook.currentPage]);
},