mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-19 01:48:22 +00:00
fix: Fixed switching workspaces with containerized essentials, b=(no-bug), c=tabs, workspaces
This commit is contained in:
@@ -1275,6 +1275,5 @@
|
||||
&[hidden='true'] {
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
position: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user