From 716dc6de9238c8f485cd04a739953fa074273761 Mon Sep 17 00:00:00 2001 From: Alexandre Stanislawski Date: Wed, 23 Dec 2015 10:40:29 +0100 Subject: [PATCH] docs(home): Fix erratic docs animation --- docs/css/_home.scss | 1 - docs/js/animation.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/css/_home.scss b/docs/css/_home.scss index 70de0b52..0b012f6e 100644 --- a/docs/css/_home.scss +++ b/docs/css/_home.scss @@ -323,4 +323,3 @@ footer.site-footer .input-group-addon { width: 319px; height: 180px; } - diff --git a/docs/js/animation.js b/docs/js/animation.js index 1485066a..061623e6 100644 --- a/docs/js/animation.js +++ b/docs/js/animation.js @@ -59,6 +59,7 @@ document.addEventListener("DOMContentLoaded", function(){ e.style.left = center[0] + 'px'; p.pos = [x + center[0], y + center[1]]; + p.originPos = [x + center[0], y + center[1]]; p.v = [0, 0]; p.r = r; }