diff --git a/src/main.js b/src/main.js index ef1ac85..3a10482 100644 --- a/src/main.js +++ b/src/main.js @@ -4522,6 +4522,7 @@ function splitPane(div, percent, horiz, newPane = undefined) { if (event.target === event.currentTarget) { if (event.button === 0) { // Left click + event.preventDefault(); // Prevent text selection during drag event.currentTarget.setAttribute("dragging", true); event.currentTarget.style.userSelect = "none"; rootPane.style.userSelect = "none"; @@ -4655,7 +4656,7 @@ function splitPane(div, percent, horiz, newPane = undefined) { { id: "ctx_option4", text: horiz ? "Join Right" : "Join Down" }, ], }); - menu.popup({ x: event.clientX, y: event.clientY }); + await menu.popup(); } console.log("Right-click on the element"); diff --git a/src/styles.css b/src/styles.css index 8e5ec2c..a0e7921 100644 --- a/src/styles.css +++ b/src/styles.css @@ -150,7 +150,7 @@ button { } .horizontal-grid:not(.panecontainer > .horizontal-grid), .vertical-grid:not(.panecontainer > .vertical-grid) { - gap: 3px; + gap: 8px; } .horizontal-grid { flex-direction: row;