I have a working code based on mousedown event. I want to convert touchstart event to mousedown event on the beggining of the event’s code to preserve existing code.
How to convert touchstart event to mousedown correctly?
Sample code with touchstart event:
var top = event.touches[i].pageY;
Create your own event object, and then call the function you’d call for a
mousedownevent with that event object. For example: