diff --git a/src/quilt/index.js b/src/quilt/index.js index 1bf1da4..1321654 100644 --- a/src/quilt/index.js +++ b/src/quilt/index.js @@ -10,7 +10,7 @@ window.setup = () => { drawQuilt() } window.onresize = window.setup -window.onmousedown = () => drawQuilt() +window.touchStarted = () => drawQuilt() const drawQuilt = () => { strokeWeight(3) diff --git a/src/random-lines/index.js b/src/random-lines/index.js index 27c4079..f8175c6 100644 --- a/src/random-lines/index.js +++ b/src/random-lines/index.js @@ -9,7 +9,7 @@ window.setup = () => { drawLines() } window.onresize = window.setup -window.onmousedown = () => drawLines() +window.touchStarted = () => drawLines() const drawLines = () => { background(255)