Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/lib/components/Anchor/Anchor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,10 @@

// If the anchor receiving the event has connections
// And it can't have multiple connections
// Or the anchor is locked
// Then this is an invalid connection
// Delete the cursor edge and clear the linking store
if ($connectedAnchors?.size && !multiple) {
if (locked || ($connectedAnchors?.size && !multiple)) {
edgeStore.delete('cursor');
if (!e.shiftKey) clearLinking(false);
return;
Expand Down Expand Up @@ -598,7 +599,7 @@
tabindex="0"
class:locked
title={title || ''}
on:mouseenter={() => (hovering = true)}
on:mouseenter={() => (hovering = true && !locked)}
on:mouseleave={() => (hovering = false)}
on:mousedown|stopPropagation|preventDefault={handleClick}
on:mouseup|stopPropagation={handleMouseUp}
Expand Down