From 26c9e91d6718fa7950fd92d9b3987156f1f984ee Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 9 May 2019 12:01:13 +0200 Subject: [PATCH] fix #2702 @0.5 --- js/libs/fluidbook/fluidbook.3dflip.js | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.3dflip.js b/js/libs/fluidbook/fluidbook.3dflip.js index 53f15d11..dfe3720a 100644 --- a/js/libs/fluidbook/fluidbook.3dflip.js +++ b/js/libs/fluidbook/fluidbook.3dflip.js @@ -337,6 +337,7 @@ Fluidbook3DFlip.prototype = { this.bendForceMultiplicator = 1; var ratio = this.fluidbook.datas.width / this.fluidbook.datas.height; + if (ratio > 1.2) { this.bendAngle = 15; this.bendOffset = 0.4; @@ -345,11 +346,9 @@ Fluidbook3DFlip.prototype = { this.bendAngle = 20; this.bendOffset = 0.4; this.bendForceMultiplicator = 1.2; - } else if (ratio > 0.85) { - this.bendAngle = 30; - this.bendOffset = 0.5; - this.bendForceMultiplicator = 1.1; } + + this.bend = new Bend(0, this.bendOffset, this.bendAngle * 0.0174533); this.bend.constraint = -1; this.modifier.reset(); @@ -643,16 +642,16 @@ Fluidbook3DFlip.prototype = { var render = true; var visible; if (this._progressAnimation < 1) { - if (this.turnRunning) { - if (this.performancesTestRunning) { - this.performancesFrames++; + if (this.turnRunning) { + if (this.performancesTestRunning) { + this.performancesFrames++; + } + render = true; + visible = true; + } else { + render = false; + visible = false; } - render = true; - visible = true; - } else { - render = false; - visible = false; - } } else { render = false; visible = false; -- 2.39.5