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!๐Ÿ‘