# How to detect whether the canvas is swiped

**URL:** https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941
**Category:** Questions about Thunkable X
**Created:** [May 29, 2021, 10:00am UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941 "2021-05-29T10:00:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)
#### Post date: [May 29, 2021, 10:00am UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/1 "2021-05-29T10:00:08Z")

</div>

How to detect whether the canvas is sliding？  
How to know which way to slide？

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [May 29, 2021, 10:04am UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/2 "2021-05-29T10:04:47Z")

</div>

The canvas, or sprites on the canvas? You should be able to get speed (not zero if moving) and there’s an angle block too.  
Or maybe I didn’t understand your question?

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [May 29, 2021, 10:11am UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/3 "2021-05-29T10:11:33Z")

</div>

i think he means when the users slide to the left, right, down or up to be able to detect that. Right?

---

<div class="post-metadata">

### Author: ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)
#### Post date: [May 29, 2021, 12:15pm UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/4 "2021-05-29T12:15:01Z")

</div>

@lukehoogenboom0i Yeah

---

<div class="post-metadata">

### Author: ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)
#### Post date: [May 30, 2021, 9:50am UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/5 "2021-05-30T09:50:25Z")

</div>

Can any one help me?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/65dbf44cf9a70039c12a22e390e207ef80029d51.png)  
How to use pointer angle Know the direction the user swipes?

---

<div class="post-metadata">

### Author: ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)
#### Post date: [May 30, 2021, 9:55am UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/6 "2021-05-30T09:55:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/2/f240e61dfeecd7b2b7c7dfb255b31af0e2d412f2.jpeg)  
Is that right?

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [May 30, 2021, 9:57am UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/7 "2021-05-30T09:57:05Z")

</div>

I am not sure how thunkable defines 0, but you could write values to a label and test it.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/how-to-detect-whether-the-canvas-is-swiped/1314941/8 "2024-11-08T13:22:14Z")

</div>


