}
}
- var center = this.centerBook();
+ var center = this.centerBookEnabled();
res.center = 0;
if (center) {
if (newPage <= 1) {
return res;
},
- centerBook: function () {
+ centerBookEnabled: function () {
return !!this.datas.centerBook && !this.displayOnePage && $('.tabslink').length == 0;
},
var animationDuration = d <= 1 ? 0 : parseFloat(this.datas.mobileTransitionDuration);
this.updateShadows(page, animationDuration);
this.centerBook(turning.center, animationDuration);
+ $("#pagesnumbers").css('opacity', 0);
try {
this.search.clearHighlights();
$(this).trigger('fluidbook.page.change.end', [this.currentPage]);
},
setPageNumbers: function () {
+ $("#pagesnumbers").css('opacity', 1);
$("#pagesnumbers .left").html(this.getPageNumberOfSide('left'));
$("#pagesnumbers .right").html(this.getPageNumberOfSide('right'));
},
white-space: nowrap;
pointer-events: none;
font-size: unit(13*@z, px);
- margin: 0.38em 0 0 0;
+ margin: 0.12em 0 0 0;
top: @book-page-height;
color: @page-number-color;
.hideifnot(@display-page-number);
+ transition: opacity 250ms;
+ opacity: 0;
> div {
width: @book-page-width;