From 060133ce77388c37b2d0d77ec51bde88699135a4 Mon Sep 17 00:00:00 2001 From: lzzfnc Date: Tue, 2 Nov 2021 01:39:37 +0100 Subject: [PATCH] code documentation --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 1acc288..58a0930 100644 --- a/script.js +++ b/script.js @@ -21,6 +21,7 @@ let showEditor = false; // Store the coordinates and trigger the function container.addEventListener("mousedown", (e) => { + // Avoid inserting a new label if the user is clicking on a close button) if (e.target.tagName !== "BUTTON") { startX = e.x; startY = e.y;