From ef2a2a5efccbe56517984d4b5dbb922266ad1ef6 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Sat, 18 Jan 2025 11:06:01 +0100 Subject: [PATCH] Enhance tab animation logic to include vertical tabs peripherals in workspace indicator animations --- src/browser/base/zen-components/ZenWorkspaces.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/browser/base/zen-components/ZenWorkspaces.mjs b/src/browser/base/zen-components/ZenWorkspaces.mjs index 318674401..b02f1bd9c 100644 --- a/src/browser/base/zen-components/ZenWorkspaces.mjs +++ b/src/browser/base/zen-components/ZenWorkspaces.mjs @@ -1350,14 +1350,15 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature { let count = 0; const onAnimationEnd = () => { count++; - // +1 for the workspace indicator tab - if (count >= tabs.length + 1) { + // +1 for the workspace indicator tab and vertical tabs periferals + if (count >= tabs.length + 2) { resolve(); } }; this.tabContainer.removeAttribute('dont-animate-tabs'); // Also animate the workspace indicator label this._animateElement(document.getElementById('zen-current-workspace-indicator'), direction, out, () => onAnimationEnd()); + this._animateElement(document.getElementById('tabbrowser-arrowscrollbox-periphery'), direction, out, () => onAnimationEnd()); for (const tab of tabs) { this._animateElement(tab, direction, out, () => onAnimationEnd()); }