Hi, a couple of thoughts on this.
I'd prefer the threshold to work by keeping track of Start position and measuring against that at each step I think.
Also, I know that sqrt isn't a particularly fast calculation. Whilst it's definitely more accurate it would be interesting to try and see if the experience works as well by just checking Y distance or X distance is greater than threshold relative to start position.
Let me know your thoughts