# Using swipe with p5.js

**URL:** <https://discourse.processing.org/t/using-swipe-with-p5-js/24287>\
**Category:** Coding Questions\
**Created:** [October 2, 2020, 2:57pm UTC](https://discourse.processing.org/t/using-swipe-with-p5-js/24287 "2020-10-02T14:57:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BSiemens](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/bsiemens/32/216_2.png) [@BSiemens](https://discourse.processing.org/u/BSiemens)\
**Post date:** [October 2, 2020, 2:57pm UTC](https://discourse.processing.org/t/using-swipe-with-p5-js/24287/1 "2020-10-02T14:57:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hoowdie](https://avatars.discourse-cdn.com/v4/letter/h/71c47a/32.png) [@hoowdie](https://discourse.processing.org/u/hoowdie)\
**Post date:** [May 9, 2021, 8:27am UTC](https://discourse.processing.org/t/using-swipe-with-p5-js/24287/2 "2021-05-09T08:27:13Z")

</div>

[https://editor.p5js.org/shiffman/sketches/HyEDRsPel](https://editor.p5js.org/shiffman/sketches/HyEDRsPel)

This works perfectly fine for me, hope it helps!
