diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index c9b6140..f1a66fe 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -347,8 +347,8 @@ class GeneratedShape { /** * Move the shape vectors. **/ - this.deltaX = mouseX - this.centerX; - this.deltaY = mouseY - this.centerY; + this.deltaX = mouseX - this.centerX - toScreenX; + this.deltaY = mouseY - this.centerY - toScreenY; this.deltaX *= this.springing; this.deltaY *= this.springing;