react-d3-tree icon indicating copy to clipboard operation
react-d3-tree copied to clipboard

Disable Drag

Open gouldie opened this issue 2 years ago • 3 comments

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

gouldie avatar Oct 12 '21 15:10 gouldie

same problem here, zoomable only disabled mouse wheel

Misil4 avatar Mar 15 '22 11:03 Misil4

Any updates on this?

DanielLuu avatar Aug 28 '22 18:08 DanielLuu

I too would like to be able to disable drag to just show a static tree

jheaff1 avatar Aug 30 '22 11:08 jheaff1

Any plans to restore this feature? @bkrem Or any workarounds?

msmfa avatar Oct 12 '22 07:10 msmfa

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 💯

bkrem avatar Jan 12 '23 07:01 bkrem

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

jorgegarba avatar Jan 23 '24 02:01 jorgegarba