Tracks mouse and touch dragging.