Fix scroll jerking The scroll jerking is caused by centering around the item. We only want to scroll just enough to make the item visible, not center around it, otherwise keyboard navigation becomes awkward. VS Code works this way using custom code in place of scrollIntoViewIfNeeded, because that is a Chrome only function. VS Code is based off of VS Team Services IDE which supports non-webkit browsers, such as Firefox, which don't have scrollIntoViewIfNeeded.
Fix scroll jerking
The scroll jerking is caused by centering around the item. We only want
to scroll just enough to make the item visible, not center around it,
otherwise keyboard navigation becomes awkward. VS Code works this way
using custom code in place of scrollIntoViewIfNeeded, because that is a
Chrome only function. VS Code is based off of VS Team Services IDE
which supports non-webkit browsers, such as Firefox, which don't have
scrollIntoViewIfNeeded.

jarig/tree-view,atom/tree-view