Added drag_lock_min_distance

To avoid locking when the distance is not large enough to reliably determine the direction