Don't do smooth scroll if it is expressly forbidden
This commit is contained in:
parent
0cae72fd00
commit
9f59a6ebe7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user