for some reason, i can't use jquey ,
this is my code :
document.addEventListener("touchstart", function(e) {
e.preventDefault();
var orig = e.originalEvent;
var x = orig.changedTouches[0].pageX;
var y = orig.changedTouches[0].pageY;
//id("#draggable").css({top: y, left: x});
id("draggable").style.left=x;
id("draggable").style.top=y;
});
use jquery , you can get the originalEvent , but if you don't use it ,
how to get it ,
thanks