From 136186f05ffc0d4a03267de813e3cb5bf85bba99 Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Mon, 5 Sep 2016 23:53:20 +0900 Subject: [PATCH] Notify background tab correctly --- content/treestyletab/windowHelper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;