Using swipe with p5.js

Does anyone know of an example of the proper implementation of swipe left/right/up/down on mobile?

1 Like

https://editor.p5js.org/shiffman/sketches/HyEDRsPel

This works perfectly fine for me, hope it helps!

2 Likes