// do nothing if we are not dragging a piece
if (!DRAGGING_A_PIECE) return;
- // get the location
- var location = isXYOnSquare(e.changedTouches[0].pageX,
- e.changedTouches[0].pageY);
-
stopDraggedPiece(findSquareFromEvent(e.changedTouches[0].pageX,
e.changedTouches[0].pageY));
}