How to snap handle to the tangent line?