diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 64572fb..2a7db4e 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -591,3 +591,18 @@ function draw() { } } } + +function mouseDragged() { + /** + * Mouse drag movement handling. + **/ + toScreenX += mouseX - pmouseX; + toScreenY += mouseY - pmouseY; +} + +function windowResized() { + /** + * Canvas re-draw handling. + **/ + resizeCanvas(windowWidth, windowHeight); +}