Merge pull request #601 from lockfale/feature/THE-117-panel-focus

Allow clicking different tool while detail panel is open (THE-117)
This commit is contained in:
s0lray
2026-03-26 17:49:38 -04:00
committed by GitHub
2 changed files with 2 additions and 4 deletions
+1
View File
@@ -11,6 +11,7 @@
#panel-overlay.visible {
display: block;
pointer-events: none;
}
/* Panel container */
+1 -4
View File
@@ -613,13 +613,10 @@ document.addEventListener("keydown", function(e) {
if (e.key === "Escape") closePanel();
});
// Wire close button and overlay once DOM is ready
// Wire close button once DOM is ready
document.addEventListener("DOMContentLoaded", function() {
var closeBtn = document.getElementById("panel-close");
if (closeBtn) closeBtn.addEventListener("click", closePanel);
var overlay = document.getElementById("panel-overlay");
if (overlay) overlay.addEventListener("click", closePanel);
});
// Canvas click: close panel when clicking the SVG background (not a node)