Closed gokulnath95 closed 5 years ago
Please use Stack Overflow tag d3.js to ask for help. Stack Overflow provides a better collaborative forum: thousands of D3-related questions have been asked there, and some answers may be relevant to you.
When asking for help, please include a link to demonstrate the issue, preferably as an Observable notebook. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
Thank you! 🤗
hi , I have built a interactive graph tool using d3v3. recently , due to our project need i migrated my code from v3 to v4. while migrating faced some issues , but i migrated alomost 90% of my code.Basically , using this tool nodes and links can be created using mouse events . for example , shift + mouse click -> node will be created under mouse position .and link can be created by pressing shift and mousedown on source node and releasing mouse up on target node. this is where my problem is exactly. By pressing mouse down im able to get the mousedown node , but by releasing it on target node im not getting mouse up event call. After i made search ... i came to know that d3v4 has prevented mouse up event and giving the control to dragend. But i cannot use dragend because both the events are different. If i use dragend i am getting the same node data as that i got in mouse down event. So is there any solution to fix this , it will be very helpful
Thanks Gokul.
Originally posted by @gokulnath95 in https://github.com/d3/d3-zoom/issues/93#issuecomment-469967046