From b7d5f6655d0492ce0d670dc1bc5fbabf501b9b2c Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Sat, 12 Apr 2025 19:03:23 +0200 Subject: [PATCH] Remove compact mode startup check if we arent using it anymore --- src/browser/base/zen-components/ZenCompactMode.mjs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/browser/base/zen-components/ZenCompactMode.mjs b/src/browser/base/zen-components/ZenCompactMode.mjs index 72f5afdb0..fb51d8c64 100644 --- a/src/browser/base/zen-components/ZenCompactMode.mjs +++ b/src/browser/base/zen-components/ZenCompactMode.mjs @@ -64,6 +64,10 @@ var gZenCompactModeManager = { set preference(value) { if (this.preference === value || document.documentElement.hasAttribute('zen-compact-animating')) { + if (typeof this._wasInCompactMode !== 'undefined') { + // We wont do anything with it anyway, so we remove it + delete this._wasInCompactMode; + } // We dont want the user to be able to spam the button return value; } @@ -421,13 +425,6 @@ var gZenCompactModeManager = { } } - // When moving the cursor between the url bar and bookmarks, or in-between bookmarks in the bookmark bar, the - // mouseLeave event is triggered without a relatedTarget. - // TODO: Experiment with this for some time, see if people still have issues with the hover state - //if (event.relatedTarget == null) { - // return; - //} - // If it's a child element but not the target, ignore the event if (target.contains(event.explicitOriginalTarget) && event.explicitOriginalTarget !== target) { return;