MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / touchposition

Function touchposition

d3-3.2.8/d3.js:1110–1114  ·  view source on GitHub ↗
(parent, id)

Source from the content-addressed store, hash-verified

1108 return d3.event.changedTouches[0].identifier;
1109 }
1110 function touchposition(parent, id) {
1111 return d3.touches(parent).filter(function(p) {
1112 return p.identifier === id;
1113 })[0];
1114 }
1115 function dragstart(id, position, move, end) {
1116 return function() {
1117 var target = this, parent = target.parentNode, event_ = event.of(target, arguments), eventTarget = d3.event.target, eventId = id(), drag = eventId == null ? "drag" : "drag-" + eventId, origin_ = position(parent, eventId), dragged = 0, offset, w = d3.select(d3_window).on(move + "." + drag, moved).on(end + "." + drag, ended), dragRestore = d3_event_dragSuppress();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected