if (newMode !== 'disable') {
this.init3D(newMode);
+ callback();
this.prepareTurn({flip: [1, 2]}, function () {
$this.playTurn(1, function () {
callback();
- });
+ }, 0.1);
});
//console.log('Performances test ok : ' + res);
} else {
callback(texture);
},
- playTurn: function (dir, callback) {
+ playTurn: function (dir, callback, timeScale) {
if (this.turnRunning) {
return;
}
+ if (timeScale === undefined) {
+ timeScale = 1;
+ }
var $this = this;
this.progressAnimation(0);
this.animate(false);
- TweenMax.fromTo(this, this.animationTime,
+ TweenMax.fromTo(this, this.animationTime * timeScale,
{
progressAnimation: 0,
},
$(this).trigger('fluidbook.splash.beforehide');
var $this = this;
if (this.support.transitions3dacc) {
- this.pauseNetwork(4000);
+ this.pauseNetwork(1500);
setTimeout(function () {
this.fluidbook.pagetransitions.flip3d.performancesTest(function () {
$this.pauseNetwork(-1);
$this._hideSplash();
})
- }, 1000);
+ }, 500);
} else {
this._hideSplash();
}
_hideSplash: function () {
var $this = this;
-
var timeout = 300;
- if (this.support.transitions3dacc) {
- timeout = 2000;
- }
setTimeout(function () {
$this.__hideSplash();