diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index e1a381bf..4ec40fe9 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -526,6 +526,7 @@ var TreeStyleTabWindowHelper = { treeStyleTab.scrollToNewTabMode == 0 || treeStyleTab.shouldCancelEnsureElementIsVisible()) return; + } let scrollRect = this.mTabstrip.scrollClientRect; let tabRect = aTab.getBoundingClientRect(); @@ -538,7 +539,7 @@ var TreeStyleTabWindowHelper = { tabRect[treeStyleTab.startProp] = tabRect.start; tabRect[treeStyleTab.endProp] = tabRect.end; - if (tabRect[treeStyleTab.startProp] >= scrollRect[treeStyleTab.startProp] || + if (tabRect[treeStyleTab.startProp] >= scrollRect[treeStyleTab.startProp] && tabRect[treeStyleTab.endProp] <= scrollRect[treeStyleTab.endProp]) return;