-
Notifications
You must be signed in to change notification settings - Fork 87
d3.mouse always returns [NaN, NaN] #66
Comments
Are you sure your width and height are correct? |
Also, I'd try setting a breakpoint, maybe around here, and looking for anything suspicious. |
@sungwoncho I am using the d3 event for now:
|
I will try again soon and close if not a bug. |
Any thoughts on this? Reproducible as a test? |
@Olical I am currently not working on a feature involving this bug and have some other priorities. But I will get back to this one. |
Since it doesn't seem to be a widespread issue (maybe a rare edge case?) I'll close this for now. Feel free to open it again if you hit it. A test that reproduces it would be brilliant, but no pressure. Thanks for the initial report anyway! I'll keep this in mind. |
I have a similar problem. It might be related to the fact that |
This also breaks zoom support because x and y in the transform object in d3 zoom event are also |
Version: latest react-faux-dom (2.7.1) and React 15.1.0.
When I do:
pos
is always[NaN, NaN]
.I can confirm that
this
inside themousemove
callback is a DOM element (e.g.Element {nodeName: "rect", parentNode: Element, childNodes: Array[0], eventListeners: Object, text: ""…}
).Any ideas why?
The text was updated successfully, but these errors were encountered: