From de13225292b35fc45cbf68d07e4c8c5d49bdf2aa Mon Sep 17 00:00:00 2001 From: s0lray Date: Thu, 26 Mar 2026 17:36:32 -0400 Subject: [PATCH] Allow clicking different tool while detail panel is open (THE-117) The panel overlay (z-index 199) was intercepting all clicks on the tree when the panel was open, forcing users to close the panel before selecting a different tool. Setting pointer-events: none on the overlay lets clicks pass through to tree nodes, where openPanel() already handles replacing the panel content. The SVG background click handler still closes the panel when clicking empty canvas. Co-Authored-By: Paperclip --- public/css/panel.css | 1 + public/js/arf.js | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/css/panel.css b/public/css/panel.css index 7128b1c..3d13002 100644 --- a/public/css/panel.css +++ b/public/css/panel.css @@ -11,6 +11,7 @@ #panel-overlay.visible { display: block; + pointer-events: none; } /* Panel container */ diff --git a/public/js/arf.js b/public/js/arf.js index a935de5..46e867f 100644 --- a/public/js/arf.js +++ b/public/js/arf.js @@ -589,13 +589,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)