Skip to content

Commit

Permalink
Prevent attaching new line to item
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Sep 18, 2023
1 parent f9c8e2a commit 261d202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/board/item-dragmove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function itemDragToMove(

if (t === "connect" || t === "line") {
const { current, dragStartPosition } = items[0]
const from = isConnectionAttachmentPoint(startPos, current) ? current : startPos
const from = isConnectionAttachmentPoint(startPos, current) && t === "connect" ? current : startPos
connector.whileDragging(from, coordinateHelper.currentBoardCoordinates.get(), t)
} else {
const margin = BOARD_ITEM_BORDER_MARGIN
Expand Down

0 comments on commit 261d202

Please sign in to comment.