Home | History | Annotate | Download | only in src

Lines Matching defs:touches

1105   d3.touches = function(container, touches) {
1106 if (arguments.length < 2) touches = d3_eventSource().touches;
1107 return touches ? d3_array(touches).map(function(touch) {
1371 var touches = d3.touches(that);
1373 touches.forEach(function(t) {
1376 return touches;
1383 var touches = relocate(), now = Date.now();
1384 if (touches.length === 1) {
1386 var p = touches[0], l = locations0[p.identifier];
1393 } else if (touches.length > 1) {
1394 var p = touches[0], q = touches[1], dx = p[0] - q[0], dy = p[1] - q[1];
1399 var touches = d3.touches(that), p0, l0, p1, l1;
1400 for (var i = 0, n = touches.length; i < n; ++i, l1 = null) {
1401 p1 = touches[i];
1418 if (d3.event.touches.length) {
2036 d3.touch = function(container, touches, identifier) {
2037 if (arguments.length < 3) identifier = touches, touches = d3_eventSource().changedTouches;
2038 if (touches) for (var i = 0, n = touches.length, touch; i < n; ++i) {
2039 if ((touch = touches[i]).identifier === identifier) {