mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-25 14:16:10 +00:00
feat: Dont translate the items if there's no visible pinned tabs, b=no-bug, c=tabs
This commit is contained in:
@@ -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)`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user