You should use changedTouches
instead touches
in touchend
div.addEvent("touchstart", function (event) {
event.preventDefault(); // to avoid scrolling
span.innerHTML = event.page.x;pageX;
});
div.addEvent("touchend", function (event) {
span.innerHTML = event.pagechangedTouches[0].x;pageX;
});