Touch control in javascript | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Touch control in javascript

How to make touch control like move right, move left, but the control can be held

2nd Aug 2020, 3:45 AM
Riki Adityawan
Riki Adityawan - avatar
2 Respostas
+ 4
Check this. https://developer.mozilla.org/en-US/docs/Games/Techniques/Control_mechanisms/Mobile_touch And there are so many libraries. Ā DHTMLX Touch,Ā TouchScroll,Ā XUI,Ā SLY,Ā jQTouch,Ā jQuery mobile
2nd Aug 2020, 4:02 AM
Maninder $ingh
Maninder $ingh - avatar
+ 3
The event listeners are touchstart touchmove touchcancel touchend
2nd Aug 2020, 5:07 AM
Gordon
Gordon - avatar