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;
}