Problem with events touch | Sololearn: Learn to code for FREE!

+8

Problem with events touch

Hi, I don t have the same result with events mouse and events touch (my var doesn’t take +50) Someone has a solution ?πŸ’‘ I don’t find ! πŸ˜” Thank you πŸ™ https://code.sololearn.com/W2Gi97G2Wv4g/?ref=app

10/8/2019 10:44:14 AM

lolo

3 Answers

New Answer

+3

Need to subtract the offsetLeft, offsetTop from clientX, clientY to align touch with the circle. And I think addRa may not be definedπŸ˜‰ https://code.sololearn.com/WkwK0eV1YVch/#js

+2

ODLNT oh yes thank you ! 😊😊😊

+1

lololearn your welcome. btw Outstanding code/job!πŸ‘