diff --git a/src/components/scene-preview-camera.js b/src/components/scene-preview-camera.js index 0f3b534f978a05023843c92fee41cdedb769406d..2576d487b7932670bf5c9349649f392feda27372 100644 --- a/src/components/scene-preview-camera.js +++ b/src/components/scene-preview-camera.js @@ -34,6 +34,7 @@ AFRAME.registerComponent("scene-preview-camera", { tick: function() { let t = (new Date().getTime() - this.startTime) / (1000.0 * this.data.duration); + t = Math.min(1.0, Math.max(0.0, t)); if (!this.ranOnePass) { t = t * (2 - t);