+ 3
Does anyone know how to track the location of touch inputs? Only JavaScript and HTML
I need to update the location of a canvas object with the location of a sliding/moving finger that's touching the screen....
3 Answers
+ 11
You can change the eventListener to "mousemove" for sliding :)
https://code.sololearn.com/WHn4CWGdYYgo/?ref=app
+ 1