Skip to content

Commit

Permalink
resetting on touch event
Browse files Browse the repository at this point in the history
  • Loading branch information
andwin committed Mar 31, 2024
1 parent 84b7462 commit 612861d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/quilt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ window.setup = () => {
drawQuilt()
}
window.onresize = window.setup
window.onmousedown = () => drawQuilt()
window.touchStarted = () => drawQuilt()

const drawQuilt = () => {
strokeWeight(3)
Expand Down
2 changes: 1 addition & 1 deletion src/random-lines/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ window.setup = () => {
drawLines()
}
window.onresize = window.setup
window.onmousedown = () => drawLines()
window.touchStarted = () => drawLines()

const drawLines = () => {
background(255)
Expand Down

0 comments on commit 612861d

Please sign in to comment.