mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 06:46:12 +00:00
fix: Fixed moving tabs around with scrollbox overflowing, b=(no-bug), c=tabs, workspaces
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user