Added distance for dragging rows

Added distance to prevent users from unintended dragging of rows.
Merge pull request #523 from ckosmowski/master

Distance for dragging