How can i get the id of the elements under my finger during touchmove?
What i want to achieve is:
- bind touch[start|end|move]
- on touchstart start selection
- during touchmove collect all dom elements "touched" under my finger
example code
var collected = [];
$('body').bind('touchstart touchmove touchend', function(event) {
event.preventDefault();
if(event.type == 'touchstart') {
collected = [];
} else if(event.type == 'touchmove') {
// id of the element under my finger??
// insert in collected the id of the element
} else if(event.type == 'touchend') {
// some code
}
});
solved.