I have function touchstart, touchmove & touchend handler like bellow for an container, the container contains number of elements. In the touchmove handler I am drawing line in canvas.
function touchStartHandler(e){
var elem = e.target;
console.log($(elem).text());
}
function touchEndHandler(e){
var elem = e.target;
console.log($(elem).text());
}
function touchMoveHandler(e){
//
}
I want to get the element in the touchend. The event's target is the same element that received the touchstart event. Any solution for this to get element in the touchend event?