fix: Fixed moving tabs around with scrollbox overflowing, b=(no-bug), c=tabs, workspaces

This commit is contained in:
Mr. M
2025-05-18 15:34:44 +02:00
parent e4eb6d6fdd
commit 8b5e26759f
2 changed files with 17 additions and 5 deletions

View File

@@ -346,6 +346,13 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
return document.querySelector(`zen-workspace[active]`)?.indicator;
}
get activeScrollbox() {
return (
document.querySelector(`zen-workspace[active]`)?.scrollbox ??
gBrowser.tabContainer.arrowScrollbox
);
}
get tabboxChildren() {
return Array.from(this.activeWorkspaceStrip?.children || []);
}
@@ -2393,6 +2400,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
gZenThemePicker.onWorkspaceChange(workspace);
gZenUIManager.tabsWrapper.scrollbarWidth = 'none';
this.workspaceIcons.activeIndex = workspace.uuid;
await this._animateTabs(workspace, !onInit && !this._animatingChange, tabToSelect, {
previousWorkspaceIndex,
previousWorkspace,
@@ -2437,8 +2445,6 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
);
}
this.workspaceIcons.activeIndex = workspace.uuid;
setTimeout(gURLBar.formatValue.bind(gURLBar), 0);
}