Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d3 mouseup event not firing #59

Closed
gokulnath95 opened this issue Mar 6, 2019 · 1 comment
Closed

d3 mouseup event not firing #59

gokulnath95 opened this issue Mar 6, 2019 · 1 comment

Comments

@gokulnath95
Copy link

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 d3/d3-zoom#93 (comment)

@gokulnath95 gokulnath95 changed the title hi , d3 mouseup event not firing Mar 6, 2019
@mbostock
Copy link
Member

mbostock commented Mar 6, 2019

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! 🤗

@mbostock mbostock closed this as completed Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants