Skip to content

Commit 2d54e9f

Browse files
committed
feat: Dont translate the items if there's no visible pinned tabs, b=no-bug, c=tabs
1 parent 84f9623 commit 2d54e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zen/tabs/ZenPinnedTabManager.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@
11991199
const isGoingToPinnedTabs = translate < topToNormalTabs;
12001200
const multiplier = isGoingToPinnedTabs !== isPinned ? (isGoingToPinnedTabs ? 1 : -1) : 0;
12011201
this._isGoingToPinnedTabs = isGoingToPinnedTabs;
1202-
if (!dropElement) {
1202+
if (!dropElement && gBrowser.pinnedTabCount - gBrowser._numZenEssentials > 0) {
12031203
itemsToCheck.forEach((item) => {
12041204
item.style.transform = `translateY(${draggingTabHeight * multiplier}px)`;
12051205
});

0 commit comments

Comments
 (0)