mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 06:46:12 +00:00
fix: Fixed workspace switching translations when multiple insatnce with the same container exist, b=(no-bug), c=workspaces
This commit is contained in:
@@ -2319,7 +2319,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
|
|
||||||
const newTransform = `translateX(${newOffset}%)`;
|
const newTransform = `translateX(${newOffset}%)`;
|
||||||
let existingTransform = `translateX(${existingOffset}%)`;
|
let existingTransform = `translateX(${existingOffset}%)`;
|
||||||
if (container.style.transform) {
|
if (container.style.transform && container.style.transform !== 'none') {
|
||||||
existingTransform = container.style.transform;
|
existingTransform = container.style.transform;
|
||||||
}
|
}
|
||||||
if (shouldAnimate) {
|
if (shouldAnimate) {
|
||||||
|
Reference in New Issue
Block a user