Double-click to place an endpoint