Add setting for the snap-to-edge distance