From 78b32002d7a69cdba586b03d3b84c0a58dffef9d Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Fri, 27 Dec 2024 20:00:18 +0100 Subject: [PATCH] Fixed toolbar jittering when in compact mode (https://github.com/zen-browser/desktop/issues/3916) --- l10n | 2 +- src/browser/base/zen-components/ZenCompactMode.mjs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/l10n b/l10n index 019ab69c2..c0ce53276 160000 --- a/l10n +++ b/l10n @@ -1 +1 @@ -Subproject commit 019ab69c2b94e4807455ee43101f871bf34d3705 +Subproject commit c0ce5327660d7cc00b7fd3b9a7fc7aedcb944423 diff --git a/src/browser/base/zen-components/ZenCompactMode.mjs b/src/browser/base/zen-components/ZenCompactMode.mjs index 9aea80314..eb54c8546 100644 --- a/src/browser/base/zen-components/ZenCompactMode.mjs +++ b/src/browser/base/zen-components/ZenCompactMode.mjs @@ -312,6 +312,11 @@ var gZenCompactModeManager = { } } + // If it's a child element but not the target, ignore the event + if (target.contains(event.explicitOriginalTarget) && event.explicitOriginalTarget !== target) { + return; + } + if (this.hoverableElements[i].keepHoverDuration) { this.flashElement(target, keepHoverDuration, 'has-hover' + target.id, 'zen-has-hover'); } else {