From bc723960f5e601655fb01b389f5e55bdb2cc103e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 4 Dec 2018 19:04:51 +0100 Subject: [PATCH] fix #2336 @0.5 --- js/libs/fluidbook/fluidbook.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index d571aecc..bbcaae57 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -460,7 +460,11 @@ Fluidbook.prototype = { speed = 0; } - var max = this.contentlock.getMaxPage() % 2 == 1 ? this.contentlock.getMaxPage() - 1 : this.contentlock.getMaxPage(); + var max = this.contentlock.getMaxPage(); + if (this.contentlock.getMaxPage() % 2 === 1 && this.datas.mobileNavigationType !== 'portrait' && this.resize.orientation !== 'portrait') { + max--; + } + var next = page < max; var previous = (page > 1); -- 2.39.5