From 1e751af4519ee673e9c6a3f697bc0193a718c7fa Mon Sep 17 00:00:00 2001 From: onemen Date: Wed, 18 Dec 2024 14:32:24 +0200 Subject: [PATCH] chore: followup bug 1926582 - Rename things related to moving multiselected tabs together --- addon/chrome/content/minit/minit.js | 6 +++++- types/general.d.ts | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addon/chrome/content/minit/minit.js b/addon/chrome/content/minit/minit.js index a0f60db2..6fa43e33 100644 --- a/addon/chrome/content/minit/minit.js +++ b/addon/chrome/content/minit/minit.js @@ -611,7 +611,11 @@ var TMP_tabDNDObserver = { return; } - tabBar._finishGroupSelectedTabs(draggedTab); + if (Tabmix.isVersion(1330)) { + tabBar._finishMoveTogetherSelectedTabs(draggedTab); + } else { + tabBar._finishGroupSelectedTabs(draggedTab); + } tabBar._finishAnimateTabMove(); } diff --git a/types/general.d.ts b/types/general.d.ts index ad4b8424..2dd6e310 100644 --- a/types/general.d.ts +++ b/types/general.d.ts @@ -227,6 +227,8 @@ declare namespace MockedGeckoTypes { _dragOverDelay: number; _expandSpacerBy: (pixels: number) => void; _finishAnimateTabMove: () => void; + _finishMoveTogetherSelectedTabs: (tab: BrowserTab) => void; + /** @deprecated replaced with _finishMoveTogetherSelectedTabs in firefox 133 */ _finishGroupSelectedTabs: (tab: BrowserTab) => void; _getDragTargetTab(event: DragEvent, options?: {ignoreTabSides?: boolean}): BrowserTab | null; // we are adding arguments to _getDropIndex see minit.js for details