look:
var draggable = document.getElementById('draggable'); draggable.addEventListener('touchmove', function(event) { var touch = event.targetTouches[0];
Also, here is a tutorial: http://mobiforge.com/design-development/touch-friendly-drag-and-drop
Please let me know if it works, or you need more help with this :)
Edit: Here is a jsfiddle with the test I built earlier. I updated it with comments so you can see what happens there. Maybe a JavaScript professional would like to hit me for this, but it works for my purpose, and I seem to have worked. I did not test it in old browsers, though, since this is a personal project, and I'm not going to โoptimize for the IE methodโ there
source share