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;