react-d3-tree
react-d3-tree copied to clipboard
Disable Drag
Are you reporting a bug, or opening a feature request?
Feature request
What is the actual behavior/output?
Unable to disable dragging since 2.0.4
We're currently trying to upgrade react-d3-tree in a project, but we'd like to be able to disable dragging of the tree. This was possible prior to v2.0.4 as setting zoomable
to false also disabled the drag, but as far as I can tell since v2.0.4 there is no way to do this.
What is the behavior/output you expect?
I'd like to be able to disable dragging of the tree
same problem here, zoomable only disabled mouse wheel
Any updates on this?
I too would like to be able to disable drag to just show a static tree
Any plans to restore this feature? @bkrem Or any workarounds?
Shipped as https://github.com/bkrem/react-d3-tree/releases/tag/v3.5.0 🚢
I realise this was wanted so apologies for the wait. If I had realised this was as simple as it apparently was to restore it wouldn't have taken until now!
Thank you again @gouldie for resolving this with a simple solution 💯
I'm arriving a little bit late, does anybody know about the following bug? I think it is related to the issue or at least is similar
https://stackoverflow.com/questions/77272006/react-d3-tree-zoom-and-drag-not-working-on-next-js-13