94
rated 0 times
[
97]
[
3]
/ answers: 1 / hits: 36174
/ 11 Years ago, tue, july 30, 2013, 12:00:00
I am trying to capture touch coordinate on the touchend
event but get undefined. The touchstart
event works good, but same concept fails on touchend
. I built this code with mousedown
and mouseup
and that works good.
What am I missing?
div.addEvent(touchstart, function (event) {
event.preventDefault(); // to avoid scrolling
span.innerHTML = event.page.x;
});
div.addEvent(touchend, function (event) {
span.innerHTML = event.page.x;
});
More From » touch