Why the circle is being drawn much lower than the touch position?...(try clicking slowly downward to see the problem) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why the circle is being drawn much lower than the touch position?...(try clicking slowly downward to see the problem)

https://code.sololearn.com/WIpW3HwHvu5b/?ref=app

10th May 2020, 3:55 AM
Rohit Singh
Rohit Singh - avatar
3 Answers
10th May 2020, 4:30 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 3
It appears your problem was using CSS to set the canvas width and height. https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_usage
10th May 2020, 8:01 PM
ODLNT
ODLNT - avatar
0
Arb Rahim Badsa Thanks.. Please can u tell what was the problem... Why my code was not working
10th May 2020, 8:05 AM
Rohit Singh
Rohit Singh - avatar