mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: prevent unnecessary window resize handling when event is not from the window
This commit is contained in:
@@ -2372,7 +2372,8 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
return workspace.containerTabId;
|
||||
}
|
||||
|
||||
onWindowResize() {
|
||||
onWindowResize(event = undefined) {
|
||||
if (!(!event || event.target === window)) return;
|
||||
// Check if workspace icons overflow the parent container
|
||||
const parent = document.getElementById('zen-workspaces-button');
|
||||
if (!parent) {
|
||||
|
Reference in New Issue
Block a user