On 07/22/2009 08:58 AM, LucaDC wrote:
Diederik wrote:
  
The problem is that when you snap along a 
constrained line, that line isn't very likely to run exactly through the 
corner of the rectangle you want to snap to.
Maybe I should and allow for really small tolerances in such a case.
    
I understand this, but I won't simply add a tolerance.
I already suggested snapping to whatever is enabled to snap to (also if it's
far from the guide), and project it perpendicularly to the guide. I've
already seen this behavior in other programs (Illustrator? Coreldraw? I
don't remeber now, maybe both).
The "perpendicularly-projected" snapping is always useful when you are
dragging with constraints (so also when you are moving an object with ctrl,
for example).
  

Of course I could add an option to explicitly project to the constraint, but that's not useful in this scenario which we were talking about now. In this case we should have a "silent" projection, but only when the node target node is _really_ close to the constraint. That's why I was thinking of a tolerance: to decide whether we snap silently or not at all.

Diederik