Does anyone know how to track the location of touch inputs? Only JavaScript and HTML | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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....

6th Apr 2019, 9:20 PM
Ayden Cook
Ayden Cook - avatar
3 Antworten
+ 11
You can change the eventListener to "mousemove" for sliding :) https://code.sololearn.com/WHn4CWGdYYgo/?ref=app
7th Apr 2019, 4:20 PM
Nikhil
Nikhil - avatar
31st Mar 2021, 11:20 AM
Spicoder
Spicoder - avatar