Bug 1951488 - Fix drag and drop of vertical pinned tabs with minimal movement. r=nsharpley

Differential Revision: https://phabricator.services.mozilla.com/D240349
This commit is contained in:
Dão Gottwald
2025-03-04 17:01:03 +00:00
parent c358ee5947
commit 7552ffe539

View File

@@ -2241,7 +2241,11 @@
newIndex++;
}
if (newIndex < 0 || newIndex == oldIndex) {
if (newIndex < 0) {
newIndex = oldIndex;
}
if (newIndex == dragData.animDropIndex) {
return;
}
dragData.animDropIndex = newIndex;