I am implementing a diagram where a an object from palette can be dropped onto a connection and the connection would change its start and end values accordingly:
A -> Z --- object drop --- A -> B -> Z
To do this I am getting the targetConnection onto which object is being dropped and change end of connection1 to B and then create new Connection from B to Z. This works on first drop. But if I try to drop another object onto connection A -> B then all connections are going haywire. Looks like end and start values of targetConnection are not being updated correctly.