| changeset 47 | c0b4a8b5a012 |
| 46:efd9c589177a | 47:c0b4a8b5a012 |
|---|---|
1 d3.svg.touches = function(container, touches) { |
|
2 if (arguments.length < 2) touches = d3.event.touches; |
|
3 |
|
4 return touches ? d3_array(touches).map(function(touch) { |
|
5 var point = d3_svg_mousePoint(container, touch); |
|
6 point.identifier = touch.identifier; |
|
7 return point; |
|
8 }) : []; |
|
9 }; |