From a679d1bcb52c0bee425e0ee77d96fd15bbc6c7bf Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Wed, 15 Oct 2025 11:38:09 +0200 Subject: [PATCH] fix: Fixed sidebar getting stuck opened when clicking on panels, b=closes #10812, p=#10819, c=compact-mode --- src/zen/compact-mode/ZenCompactMode.mjs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/zen/compact-mode/ZenCompactMode.mjs b/src/zen/compact-mode/ZenCompactMode.mjs index 58c6f4b07..720174d5f 100644 --- a/src/zen/compact-mode/ZenCompactMode.mjs +++ b/src/zen/compact-mode/ZenCompactMode.mjs @@ -605,14 +605,6 @@ var gZenCompactModeManager = { } } - // If it's a child element but not the target, ignore the event - if ( - target.contains(event.explicitOriginalTarget) && - event.explicitOriginalTarget !== target - ) { - return; - } - // See bug https://bugzilla.mozilla.org/show_bug.cgi?id=1979340 and issue https://github.com/zen-browser/desktop/issues/7746. // If we want the toolbars to be draggable, we need to make sure to check the hover state after a short delay. // This is because the mouse is left to be handled natively so firefox thinks the mouse left the window for a split second.