From d55a8fe0c2c47e03905bf2227633344aaf51d2fc Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 3 Feb 2020 08:46:50 +0100 Subject: [PATCH] Have the shapes follow the mouse --- voicegardens/static/voicegardens.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 38ed823..7c18213 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -272,8 +272,8 @@ class GeneratedShape { /** * Move the shape vectors. **/ - this.deltaX = this.destX - this.centerX; - this.deltaY = this.destY - this.centerY; + this.deltaX = mouseX - this.centerX; + this.deltaY = mouseY - this.centerY; this.deltaX *= this.springing; this.deltaY *= this.springing;