+ 1
[solved]touch event error
Why when I print event.clientY or event.ClientX does it print an undefined value?. Help me please.Thanks https://code.sololearn.com/WAn5W9R6Sj5T/?ref=app
7 Antworten
+ 7
event.touches[0].clientX
Touch events keep track of multiple touches.
You're welcome.
+ 7
Emanuel Maliaño as funny as this may seem I changed
line 28 to path(clip, m.x. m);
and your error disappeared and the code worked fine... but I would follow what Calviղ did.
+ 3
Emanuel Maliaño BroFar The code has no problem with mousemove event, but the the event call the path function path(clip, m.x. m.y); has syntax error.
It should be path(clip, m.x, m.y);
+ 2
✌😅fixed
+ 1
Kevin ★ thanks man