diff --git a/app/src/lib/graph-interface/graph/Graph.svelte b/app/src/lib/graph-interface/graph/Graph.svelte
index ea6c504..b089895 100644
--- a/app/src/lib/graph-interface/graph/Graph.svelte
+++ b/app/src/lib/graph-interface/graph/Graph.svelte
@@ -778,6 +778,10 @@
let isDragging = false;
+ function handleMouseLeave() {
+ isDragging = false;
+ }
+
function handleDrop(event: DragEvent) {
event.preventDefault();
isDragging = false;
@@ -865,17 +869,21 @@
on:mouseup={handleMouseUp}
on:dragenter={handleDragEnter}
on:dragover={handlerDragOver}
+ on:dragexit={handleDragEnd}
on:drop={handleDrop}
+ on:mouseleave={handleMouseLeave}
on:keydown={keymap.handleKeyboardEvent}
on:mousedown={handleMouseDown}
>
+