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!

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

5/10/2020 3:55:51 AM

Rohit Singh

3 Answers

New Answer

+3

Rohit Singh Hey, check the corrected code :)) https://code.sololearn.com/Ww1JUJWYRWfO/?ref=app

+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

0

Arb Rahim Badsa Thanks.. Please can u tell what was the problem... Why my code was not working