Added mouse and touch dragging