Take a look at this example:
https://jsfiddle.net/g1fjqkzb/1/
scrollIntoView()
works as expected.
In this example by default one single clicked node is centred.
In case where you don't clear zoom_nodes array, 'scrollIntoView' will scroll so that all previously clicked nodes are visible.
If you wish to scroll into single clicked node, then clear array content before pushing clicked node id to array.
You can also push any other nodes in zoom_nodes array. Just make sure such nodes exists.
Hope this helps.