mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Fix promise handling in ZenViewSplitter to prevent memory leaks
This commit is contained in:
@@ -247,10 +247,13 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
}
|
||||
),
|
||||
]);
|
||||
this._finishAllAnimatingPromise.then(() => {
|
||||
this._canDrop = true;
|
||||
draggedTab._visuallySelected = true;
|
||||
});
|
||||
if (this._finishAllAnimatingPromise) {
|
||||
this._finishAllAnimatingPromise.then(() => {
|
||||
this._canDrop = true;
|
||||
draggedTab._visuallySelected = true;
|
||||
this._finishAllAnimatingPromise = null;
|
||||
});
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user