mirror of
https://github.com/lockfale/OSINT-Framework.git
synced 2026-08-23 06:12:23 +02:00
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:
@@ -11,6 +11,7 @@
|
||||
|
||||
#panel-overlay.visible {
|
||||
display: block;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Panel container */
|
||||
|
||||
+1
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user