Skip to content

Invalid zoom transform after selecting node #467

Open
@deiwo

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions