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

events / dragged not working #35

Open
yankeeinlondon opened this issue May 14, 2017 · 4 comments
Open

events / dragged not working #35

yankeeinlondon opened this issue May 14, 2017 · 4 comments

Comments

@yankeeinlondon
Copy link

When I used the d3-drag/drag function in conjunction with d3-selection/event it would appear all events are not getting through to d3. I had a suspicion that the Ember component was swallowing up these events so I changed over to a tagless component figuring I'd have greater control of the events on the SVG/Canvas element. Sadly that didn't seem to help. Any ideas?

Code here: https://github.com/ksnyde/d3-fun/blob/master/app/components/circle-dragging.js#L79-L84

P.S. I have really enjoyed using this addon to get started with d3 in Ember. Great work. I actually will likely send you a PR which just adds a few more examples of charts you can build with this addon (if you're amendable). I think it will make your work more approachable to have the dummy app have a variety of examples working for people to engage with

@ivanvanderbyl
Copy link
Owner

I haven't tried events with canvas, so can't really offer much advice there. Ember doesn't swallow events, instead relies on them bubbling up to the document level to catch them in global event handlers, then delegate them to any components which register handlers. So what's more likely is that your event handlers aren't attaching correctly, which might require something different with canvas.

@yankeeinlondon
Copy link
Author

yankeeinlondon commented May 18, 2017 via email

@ivanvanderbyl
Copy link
Owner

@ksnyde did you resolve this?

@yankeeinlondon
Copy link
Author

I didn't but largely due to lack of bandwidth. If you want to close it I can reopen when I come back to this in a week or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants