+ 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

8th Oct 2019, 10:44 AM
lolo
lolo - avatar
3 Answers
+ 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
8th Oct 2019, 12:01 PM
ODLNT
ODLNT - avatar
+ 2
[user id=179376]ODLNT[/user] oh yes thank you ! 😊😊😊
8th Oct 2019, 12:19 PM
lolo
lolo - avatar
+ 1
lololearn your welcome. btw Outstanding code/job!👍
8th Oct 2019, 12:28 PM
ODLNT
ODLNT - avatar