Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit fe7c161

Browse files
Kr0noxEntenwilli
authored andcommitted
check against port not against node
1 parent 00dfc43 commit fe7c161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/dfdElements/portSnapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class PortAwareSnapper implements ISnapper {
5151
private snapPort(position: Point, element: SPortImpl): Point {
5252
const parentElement = element.parent;
5353

54-
if (!(parentElement instanceof SNodeImpl)) {
54+
if (parentElement instanceof SPortImpl) {
5555
// Parent is not a node, so we cannot snap the port to the node edges
5656
return position;
5757
}

0 commit comments

Comments
 (0)