diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 95eea34d..0834b6d5 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -561,7 +561,8 @@ var TreeStyleTabWindowHelper = { if (treeStyleTab) { if (treeStyleTab.shouldCancelEnsureElementIsVisible()) return; - else if (treeStyleTab.animationEnabled) + let shouldScrollNow = aArgs[1] === false; + if (treeStyleTab.animationEnabled && !shouldScrollNow) return treeStyleTab.scrollToTab(aArgs[0]); } this.__treestyletab__ensureElementIsVisible.apply(this, aArgs);