bkrem / react-d3-tree

:deciduous_tree: React component to create interactive D3 tree graphs
https://bkrem.github.io/react-d3-tree
MIT License
1.06k stars 268 forks source link

draggable prop not working on mobile #444

Closed dungle-groove closed 1 year ago

dungle-groove commented 1 year ago

Thank you for taking the time to report an issue with react-d3-tree!

Feel free to delete any questions that do not apply.

Are you reporting a bug, or opening a feature request?

Report a bug

What is the actual behavior/output?

I have set draggable = false but it only worked for desktop, not on touch devices. Because mobile only triggers touchmove instead mousemove event therefore this condition cannot be caught. image

What version of react-d3-tree are you using?

"react-d3-tree": "3.5.0"

bkrem commented 1 year ago

Thanks for raising this 🙏

Fixed by @Adeams1805 in #448.

Patched in https://github.com/bkrem/react-d3-tree/releases/tag/v3.5.1