tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 4b4988f16dea43562867d2eeb955a2c4ed09874b
parent e81ba1b87bfca2cb6f0a8bc90c84721244e66c84
Author: Nikki Sharpley <nsharpley@mozilla.com>
Date:   Wed, 29 Oct 2025 16:29:50 +0000

Bug 1996295 - Dragged tab group labels not always positioned under cursor. r=tabbrowser-reviewers,sclements

Differential Revision: https://phabricator.services.mozilla.com/D270519

Diffstat:
Mbrowser/components/tabbrowser/content/drag-and-drop.js | 2+-
Mbrowser/components/tabbrowser/content/tab-stacking.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/browser/components/tabbrowser/content/drag-and-drop.js b/browser/components/tabbrowser/content/drag-and-drop.js @@ -1280,7 +1280,7 @@ movingTab.setAttribute("dragtarget", ""); if (isTabGroupLabel(tab)) { if (this._tabbrowserTabs.verticalMode) { - movingTab.style.top = rect.top - unpinnedRect.top + "px"; + movingTab.style.top = rect.top - tabContainerRect.top + "px"; } else { movingTab.style.left = rect.left - movingTabsOffsetX + "px"; movingTab.style.height = rect.height + "px"; diff --git a/browser/components/tabbrowser/content/tab-stacking.js b/browser/components/tabbrowser/content/tab-stacking.js @@ -369,7 +369,7 @@ movingTab.setAttribute("dragtarget", ""); if (isTabGroupLabel(tab)) { if (this._tabbrowserTabs.verticalMode) { - movingTab.style.top = rect.top - unpinnedRect.top + "px"; + movingTab.style.top = rect.top - tabContainerRect.top + "px"; } else { movingTab.style.left = rect.left - movingTabsOffsetX + "px"; movingTab.style.height = rect.height + "px";