sim51 / react-sigma

Sigma React component
https://sim51.github.io/react-sigma/
Other
158 stars 27 forks source link

Fix drag n drop for see whole graph button #61

Closed willynilly closed 3 months ago

willynilly commented 3 months ago

When I tried using some of the Drag N Drop code, I discovered that it caused a problem when dragging a node and then clicking the "See whole graph" button in the Zoom control. Basically, the dragged out node would not be included in the view after the "See whole graph" button is clicked. This is because it needs to update the custom bounded box after the dragged node is released. So I fixed this code.

I also fixed 2 minor issues that prevented the example code from compiling, both involving touch events.

sim51 commented 3 months ago

Thanks for the PR, I will check that.