Added settings.draggingTimeout.

Useful so that the onClick events know they were dragged. without it the dragging flag is set back to false before the click event fires.