this.scene.add(new THREE.AmbientLight(0xffffff, 1.5));
}
- var far = 24000;
+
+ var zoom = 0.8;
+ var far = 24000 * zoom;
var near = 1000;
this.camera = new THREE.PerspectiveCamera(20, 1, near, far);
- this.camera.zoom = 1;
- this.camera.position.z = 8873 * 2;
+ this.camera.zoom = zoom;
+ this.camera.position.z = 8873 * 2 * zoom;
this.camera.updateProjectionMatrix();
if (this.enableLight) {
this.progressAnimation(0);
this.animate(false);
- var delay = this.fluidbook.support.iOS ? 0.05 : 0;
+ var delay = this.fluidbook.support.iOS ? 0.15 : 0;
TweenMax.fromTo(this, this.animationTime * timeScale,
{progressAnimation: 0,},
this.camera.updateProjectionMatrix();
}
- this.jcontainer.css({width: this.pw, height: this.ph});
+ var fw = $("#fluidbook").get(0).getBoundingClientRect();
+
+ this.jcontainer.css({left: fw.left, width: fw.width, height: this.ph});
+ this.jcontainer.find('canvas').css({left: -fw.left, width: this.pw, height: this.ph});
if (null !== THREE) {
this.renderer.setSize(this.pw, this.ph);
this.guessCameraZoom();
duration = animationDuration * 0.3;
}
+
var left = true, right = true;
if (!this.displayOnePage) {
if ((page <= 1 && this.l10n.dir === 'ltr') || (page >= this.contentlock.getMaxPage() && this.l10n.dir === 'rtl')) {
$(s).children(s_in.join(',')).removeClass('hidden');
}, delay);
}
- if(s_out.length>0) {
+ if (s_out.length > 0) {
$(s).children(s_out.join(',')).addClass('hidden');
}
}