source: Dev/trunk/d3/src/svg/touches.js @ 76

Last change on this file since 76 was 76, checked in by fpvanagthoven, 14 years ago

d3

File size: 258 bytes
RevLine 
[76]1d3.svg.touches = function(container) {
2  var touches = d3.event.touches;
3  return touches ? d3_array(touches).map(function(touch) {
4    var point = d3_svg_mousePoint(container, touch);
5    point.identifier = touch.identifier;
6    return point;
7  }) : [];
8};
Note: See TracBrowser for help on using the repository browser.