fix: improve tab dragging behavior and enhance split view session restoration

This commit is contained in:
mr. m
2025-03-31 19:42:31 +02:00
parent 2010c3a5c7
commit e699756093
3 changed files with 23 additions and 3 deletions

View File

@@ -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 });
}
}
}