This sample is based on the html5rocks page at http://www.html5rocks.com/en/tutorials/dnd/basics/ .
The original sample uses HTML5 drag and drop events, and therefore works only with the mouse.
This version uses the DragDropTouch polyfill so you should be able to drag the rectangles to new positions using the mouse or touch.
Drag columns to new positions using the mouse or touch:
Drag fields to new build pivot tables using the mouse or touch: