-adjust minimum distance, support mouse dragging