# \[resolved\] Issues with my drawing app

**URL:** <https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [May 5, 2021, 11:30am UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611 "2021-05-05T11:30:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 5, 2021, 11:30am UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/1 "2021-05-05T11:30:42Z")

</div>

Hey, I’m trying to make a special drawing app, i have try this so far:

![](https://i.postimg.cc/vBZQ44xf/thunk-help.png)

i’m pretty sure something is missing (I have no idea), but again this is the first i made such an app.

Can you help me with it ?

Thank you,  
Fallency4

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [May 5, 2021, 12:10pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/2 "2021-05-05T12:10:45Z")

</div>

Hi!

Check this out: [https://youtu.be/ibwLvqov-JY](https://youtu.be/ibwLvqov-JY)

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 5, 2021, 1:09pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/3 "2021-05-05T13:09:42Z")

</div>

Hi, your video is great,even if some block have change,  
but instead of making line my app just make dot. I can make little line but not draw.  
Works well with the web preview.  
Thanks

---

<div class="post-metadata">

**Author:** ![thunderlilies1](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@thunderlilies1](https://community.thunkable.com/u/thunderlilies1)\
**Post date:** [May 5, 2021, 1:14pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/4 "2021-05-05T13:14:18Z")

</div>

![Screenshot 2021-05-05 at 9.11.18 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/f/afd88975a611d6853c9b490fcd7e75775994a9a1.png)

I just used these 2 events and it worked fine for me. you can do freeeform drawing with it

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 5, 2021, 7:53pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/5 "2021-05-05T19:53:55Z")

</div>

Hey I have another issue with the app, it’s hard to describe so I made a video:

[Drawing app issue](https://youtu.be/i_Lsa0P6IRo)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 5, 2021, 9:59pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/6 "2021-05-05T21:59:20Z")

</div>

A video is only helpful if it has an explanation (either audio or written). I have no idea what I’m looking for or what’s not working.

I don’t know if I’m supposed to notice that the label never changes from “Label” or that the green lines aren’t connected or…???

Can you explain a little?

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 5, 2021, 10:18pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/7 "2021-05-05T22:18:02Z")

</div>

Yes, you right my bad.

So long story short, when I start to draw on the canvas, you can see that the buttons become pale, and when they are pale, the canvas stop “drawing” that’s why there are dots and short lines instead of a continuous line. And I don’t know why this happened.

By the way, sorry if I’m not clear enough, I’m French and English is not my main language.

Fallency4

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 6, 2021, 12:32am UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/8 "2021-05-06T00:32:36Z")

</div>

It’s very clear! Thanks for the explanation. I may not have a solution but now others who read this topic can hopefully offer advice. 🙂

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 13, 2021, 12:07pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/9 "2021-05-13T12:07:06Z")

</div>

I up my request for the first time (and the last time) to see if I can get responses, otherwise I will let my problem die without answers

Thanks for helping me so far.

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 13, 2021, 12:11pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/10 "2021-05-13T12:11:14Z")

</div>

Could you share some of your code? Screenshots will do.

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 13, 2021, 12:33pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/11 "2021-05-13T12:33:33Z")

</div>

Hey, thanks for replying, so basically my code is split in three part:

-the drawing part.

 ![Screenshot_20210513-142719](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/2/42b4ead08a0616dd3096a950ddf3fc8b556284d7.jpeg)

-The secret part.

 ![Screenshot_20210513-142739](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6b580c177ad6165888b541c6bbe200c7db2a094f.jpeg)

-And some gyroscope feed back.

 ![Screenshot_20210513-142801](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/e/0e08d9c69399f38df34e5cda8685cd520b4cad02.jpeg)

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 13, 2021, 12:36pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/12 "2021-05-13T12:36:52Z")

</div>

Just asking, do you need the gyroscope part because gyroscope is always updating even if you keep your phone on the ground, that might slow down your app, not sure.

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 13, 2021, 12:41pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/13 "2021-05-13T12:41:54Z")

</div>

Yes, need it, this app will be use for making predictions in a magic trick, the gyroscope will be used to know how I turn the phone face up (from the front, back, left, right)

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 13, 2021, 12:42pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/14 "2021-05-13T12:42:38Z")

</div>

Oh and another thing, you are setting the variable psw to it’s value plus one, just change app variable psw by 1, not the problem but it is easier. Could you by chance share your project link? I can check out your code fully then, I won’t be able to edit it, thunkable rules. I will also be able to test it, helpful for me to see the problem.

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 13, 2021, 12:43pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/15 "2021-05-13T12:43:10Z")

</div>

Oh ok no worries then.

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 13, 2021, 12:46pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/16 "2021-05-13T12:46:44Z")

</div>

Yeah sure,

[https://x.thunkable.com/copy/2f58aeffcaf0d80d12a3f04f739d1a52](https://x.thunkable.com/copy/2f58aeffcaf0d80d12a3f04f739d1a52)

I hope it’s how you share the project

By the way, it work perfectly in the web preview but it don’t work with the Mobile preview or even in apk form.

Thanks

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 13, 2021, 1:24pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/17 "2021-05-13T13:24:20Z")

</div>

I think i know the problem is, and am working on a solution, you know when you reach then end of a website on a phone? It wont let you scroll more, and on android that translucent thing(i don’t know what to call it or what it’s called) comes, the same thing is happening here, it thinks the user is trying to scroll and that is why you aren’t getting complete lines as drawing, but on the web you use a cursor to scroll so it wont even give you that error.

---

<div class="post-metadata">

**Author:** ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)\
**Post date:** [May 13, 2021, 1:35pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/18 "2021-05-13T13:35:45Z")

</div>

Ho I see, maybe I should disable the scroll option? Or something?

But even if I don’t drag my fingers around, as soon as I touch the canvas, the buttons become pale and I can’t draw

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 13, 2021, 1:42pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/19 "2021-05-13T13:42:38Z")

</div>

No i think i’ve come to the wrong conclusion, any thunkers willing to help? So basically the problem is, whenever you touch the stage, the screen blanks out when touched, and therefore stops you from creating a line.

 ![Screenshot_2021-05-13-19-07-46](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/f/bfd59f9c164ba7d9f06882bcd1c4f662bfc82955.png)

---

<div class="post-metadata">

**Author:** ![backscratcher2007](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/backscratcher2007/32/104623_2.png) [@backscratcher2007](https://community.thunkable.com/u/backscratcher2007)\
**Post date:** [May 13, 2021, 1:48pm UTC](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611/20 "2021-05-13T13:48:55Z")

</div>

Scroll was already disabled, i tried enabling to see if that solved the problem, but it didn’t. I don’t know how but somehow in the first try i managed to draw properly. I tried doing that again, but it didn’t work.

[Next page](https://community.thunkable.com/t/resolved-issues-with-my-drawing-app/1264611.md?page=2)
