Sticky snap: a better snapping algorithm

The “snapping” feature in most drawing apps has a problem: you can’t place the object near snap lines, so for precise positioning, you have to disable snapping. In this post, I show sticky snap , a better algorithm. But first, try to place the green rectangle at the target using the standard snap algorithm: You’ll soon find that it’s impossible to reach! The snap lines always pull the object out…