Hello dear friends. I’ve been thinking a lot about this issue. I finally found a solution that works for me. (I wanted to share the solution I found, in case it might be useful to someone.)
The extension here solved my problem.
https://community.thunkable.com/t/free-customize-any-touchscreen-event-including-any-multi-touch-screen/37716
Thank you very much Zhangzqs for this extension.
Also, I have made the drawings more beautiful by taking advantage of the valuable information here.
Thank you very much Ansh_AnandNightmare for the useful information here.
Now I start drawing as soon as I touch the screen. Here is the video.
For those who want to try the application, the apk file of the application is below.
CanvasDraw.apk (5.2 MB)
The blocks for the application are as follows.
The app works great for me as it stands. I hope it will be useful for others as well.
I wish everyone a nice day.