You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PROBLEM:
When both zoom and selectable properties are enabled for TreeRenderer (in my case I also have is-radial: true) when the tree is panned/zoomed and then some branch is selected by clicking on it, the view resets to initial position and when panned again it jumps back to its original zoomed/panned position.
EXPECTED:
The zoom/pan is not changed after selecting a branch by clicking.
POSSIBLE CAUSE:
I suspect this is caused by the fact that the zoom transformation is only applied when zoom event is triggered, but the transform property of the tree-container is changed separately in resizeSvg(tree, svg, tr) function inside events.js. So every time the update() function is called and no resize event was triggered the zoom/panning gets reset.
The text was updated successfully, but these errors were encountered:
PROBLEM:
When both zoom and selectable properties are enabled for TreeRenderer (in my case I also have is-radial: true) when the tree is panned/zoomed and then some branch is selected by clicking on it, the view resets to initial position and when panned again it jumps back to its original zoomed/panned position.
EXPECTED:
The zoom/pan is not changed after selecting a branch by clicking.
POSSIBLE CAUSE:
I suspect this is caused by the fact that the zoom transformation is only applied when zoom event is triggered, but the transform property of the tree-container is changed separately in resizeSvg(tree, svg, tr) function inside
events.js
. So every time the update() function is called and no resize event was triggered the zoom/panning gets reset.The text was updated successfully, but these errors were encountered: