]> _ Git - fluidbook-html5.git/commitdiff
fix #2336 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Dec 2018 18:04:51 +0000 (19:04 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Dec 2018 18:04:51 +0000 (19:04 +0100)
js/libs/fluidbook/fluidbook.js

index d571aecc7a4360e39fe32fce85126b5c48fa1ff4..bbcaae572112aaa7d259a0dbd77fcb5d0c005461 100644 (file)
@@ -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);