Cannot create svgpoint from a keyboard event in Firefox
dplassgit opened this issue · comments
David Plass commented
In point.js it assumes that the event
has defined clientX
and clientY
fields. But, if the event is a keyboard event it will not have those fields. Chrome is OK with assigning undefined to the field, but Firefox throws an exception:
TypeError: Value being assigned to SVGPoint.x is not a finite floating-point value.
Mike Bostock commented
d3.clientPoint isn’t supposed to be passed a KeyboardEvent. It expects a MouseEvent or a Touch.