d3 / d3-selection

Transform the DOM by selecting elements and joining to data.
https://d3js.org/d3-selection
ISC License
557 stars 292 forks source link

fix: Support touch events #305

Closed luke-s-snyder closed 2 years ago

luke-s-snyder commented 2 years ago

Passing a touch event as input currently returns [NaN, NaN].

Fil commented 2 years ago

It's recommended to use pointer events in that case. See https://github.com/d3/d3-selection/blob/main/README.md#pointers and https://observablehq.com/@d3/multitouch#multitouch

luke-s-snyder commented 2 years ago

Thank you!