Skip to content

Link snapping does set ports instead of previewing : unwanted behaviour #166

Open
@rob-ack

Description

@rob-ack

Link snapping does set ports instead of previewing the new ports position.
This will trigger custom behaviour when extending Blazor.Diargrams. I.e. the Links_Added BaseLinkModel.TargetPortChanged callback will be triggered.

Due to the constant adding and remving when links are moved, another case is that 'PortModel.CanAttachTo' implementations can not cleanly test if any link to the port is already attached and preven attaching like
if (target.Links.Count > 0) { return false; }

The behaviour should change to only snapping but not also _ongoingLink.SetTargetPort(port);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions