Hi
Question for scrollIntoView with selectionChange event
scrollIntoView() is work valid in mouseClick event.
But, unfortunately, sometimes mouseClick event is not trigger because
fail to catch mouseUp event. (by dragging or delayed mouse button releasing)
I wanted mouseDown event but Its not supported.
So, I trying with selectionChanged event but scrollIntoView() is not work in this context.
Could you any solutions?
-- Secondary --
I had to put select target nodes before call this API.
Do scrollIntoView() only worked for selected nodes?
following sample
function scrollTo(node) {
var t = 100;//window.innerHeight / 3;
var lr = 400;//window.innerWidth / 2;
var b = 300;//window.innerHeight / 3 * 2;
if(node.selected != true)
netChart.selection(node);
var nodes = [node.id];
var box = [t, lr, b, lr];
netChart.scrollIntoView(nodes, box); // order t r b l
delete nodes;
delete box;
}