+ 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 Answers
+ 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