fix: Fixed drag-and-drop regression when updating Firefox 145.0, b=no-bug, c=folders

This commit is contained in:
mr. m
2025-11-13 20:33:35 +01:00
parent 609aa386f0
commit 9e899f1d8a
2 changed files with 4 additions and 7 deletions

View File

@@ -1156,10 +1156,7 @@
let dragDownThreshold =
Services.prefs.getIntPref('zen.view.drag-and-drop.drop-inside-lower-threshold') / 100;
const dropElementGroup = dropElement.group;
if (!dropElementGroup) {
return { dropElement, colorCode, dropBefore };
}
const dropElementGroup = dropElement;
const isSplitGroup = dropElement?.group?.hasAttribute('split-view-group');
let firstGroupElem =
dropElementGroup.querySelector('.zen-tab-group-start').nextElementSibling;