From efff61dd73fff772921426e5a03edf548eb58e93 Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Sun, 14 Oct 2018 05:33:00 +0000 Subject: [PATCH] Apply camera fix --- src/components/scene-preview-camera.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/scene-preview-camera.js b/src/components/scene-preview-camera.js index 0f3b534f9..2576d487b 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); -- GitLab