From 411af0bd2f14f71df79a21e15ec63614ce25a7f9 Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Sun, 28 May 2023 20:21:22 +0200 Subject: [PATCH] fixed abortion of edge creation --- editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/editor.js b/editor.js index 03add8b..9f5af62 100644 --- a/editor.js +++ b/editor.js @@ -502,6 +502,7 @@ function openContextMenu(x, y, menu) { menu.style.top = y - 25; menu.style.left = x + 20; menu.style.display = 'block'; + edgeFrom = edgeTo = null; } var newStateCoords = {'x': 0, 'y': 0}; //Initial coordinates of the next new state