feat: Dont translate the items if there's no visible pinned tabs, b=no-bug, c=tabs

This commit is contained in:
mr. m
2025-08-11 23:12:18 +02:00
parent 84f962346c
commit 2d54e9f27f

View File

@@ -1199,7 +1199,7 @@
const isGoingToPinnedTabs = translate < topToNormalTabs;
const multiplier = isGoingToPinnedTabs !== isPinned ? (isGoingToPinnedTabs ? 1 : -1) : 0;
this._isGoingToPinnedTabs = isGoingToPinnedTabs;
if (!dropElement) {
if (!dropElement && gBrowser.pinnedTabCount - gBrowser._numZenEssentials > 0) {
itemsToCheck.forEach((item) => {
item.style.transform = `translateY(${draggingTabHeight * multiplier}px)`;
});