Bug #47178 Dragging relationship lines with snap-to-grid enabled seems incorrect
Submitted: 7 Sep 2009 17:50 Modified: 6 Feb 2014 18:55
Reporter: Craig Fowler Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.1.17 OS:Linux (Kubuntu Jaunty using (new Ubuntu 9.04) .deb installer - 32 bit)
Assigned to: CPU Architecture:Any
Tags: drag-and-drop, UI

[7 Sep 2009 17:50] Craig Fowler
Description:
When dragging relationship lines with "snap to grid" enabled, the lines seem to snap 'backwards' (to the snap position most recently passed over) rather than to the closest snap position.

How to repeat:
Create a new model with two tables.

Enable snap to grid on that model.  The relationship notation I am using is the default "Crow's Feet".

Create a relationship between those tables and space them in such a way that the relationship line has a visible 'dogleg' and now click the relationship line.  Drag the relationship line's drag handle slowly in either direction.

Move the line so that it is closest to the snap point 'in front' of it, without crossing over that snap point.  When releasing the drag handle the line snaps 'backwards' to the snap point that it had most recently passed over, instead of sapping forwards to the closest snap point (which I assume was the intended operation).

This might be hard to visualise so will be followed up with a screen recording of what I mean in a few minutes!

Suggested fix:
Snap the relationship lines to the closest snap point, rather than the most recently passed-over snap point.
[8 Sep 2009 4:25] Susanne Ebrecht
Wow ... a nuance but you are right.

Verified as described.
[6 Feb 2014 18:55] Philip Olson
Fixed as of the upcoming MySQL Workbench 6.1.2 release, and here's the changelog entry:

Relationship lines now snap to the closest snap point, rather than the
most recently passed-over snap point.

Thank you for the bug report.