Not work in tablet(touch)... the main problem is how detect destination tile (in touch)?

I have a puzzle drag/drop/swap tiles work in desktop, but Not work in tablet(touch)… the main problem is how detect destination tile (in touch) ?

endDragId = e.target.parentNode.id; // this in touch same as start tile

function endDrag(e) {	

e.domEvent.preventDefault();
var e=e.domEvent;

endDragId = e.target.parentNode.id;  // this in touch same as start tile

swapTiles2(startDragId, endDragId);
updateTries(false);
return;
}

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.