mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 01:46:35 +00:00
fix: improve tab dragging behavior and enhance split view session restoration
This commit is contained in:
@@ -781,7 +781,11 @@
|
||||
newIndex++;
|
||||
}
|
||||
}
|
||||
gBrowser.moveTabTo(draggedTab, newIndex);
|
||||
// If it's the last tab, move it to the end
|
||||
if (tabsTarget === gBrowser.tabs.at(-1)) {
|
||||
newIndex++;
|
||||
}
|
||||
gBrowser.moveTabTo(draggedTab, newIndex, { forceStandaloneTab: true });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user