|
|
@ -21,6 +21,7 @@ let showEditor = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Store the coordinates and trigger the function
|
|
|
|
// Store the coordinates and trigger the function
|
|
|
|
container.addEventListener("mousedown", (e) => {
|
|
|
|
container.addEventListener("mousedown", (e) => {
|
|
|
|
|
|
|
|
// Avoid inserting a new label if the user is clicking on a close button)
|
|
|
|
if (e.target.tagName !== "BUTTON") {
|
|
|
|
if (e.target.tagName !== "BUTTON") {
|
|
|
|
startX = e.x;
|
|
|
|
startX = e.x;
|
|
|
|
startY = e.y;
|
|
|
|
startY = e.y;
|
|
|
|