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