fix: Fixed switching workspaces with containerized essentials, b=(no-bug), c=tabs, workspaces

This commit is contained in:
Mr. M
2025-04-27 22:51:25 +02:00
parent 9abc7f1a82
commit 21e0496d6f
2 changed files with 4 additions and 2 deletions

View File

@@ -1275,6 +1275,5 @@
&[hidden='true'] {
visibility: hidden;
pointer-events: none;
position: fixed;
}
}

View File

@@ -2052,7 +2052,10 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
(w) => w.uuid === essentialsWorkspacess[essentialsWorkspacess.length - 1].uuid
);
// Check if the container is even going to appear on the screen, to save on animation
if (firstWorkspaceIndex > newWorkspaceIndex || lastWorkspaceIndex < newWorkspaceIndex) {
if (
(isGoingLeft && newWorkspaceIndex > lastWorkspaceIndex) ||
(!isGoingLeft && newWorkspaceIndex < firstWorkspaceIndex)
) {
container.remove();
continue;
}