MCPcopy Create free account
hub / github.com/idank/explainshell / touchmove

Function touchmove

explainshell/web/static/js/d3.v3.js:1214–1225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1212 }
1213 }
1214 function touchmove() {
1215 var touches = d3.touches(this), p0 = touches[0], l0 = translate0[p0.identifier];
1216 if (p1 = touches[1]) {
1217 var p1, l1 = translate0[p1.identifier];
1218 p0 = [ (p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2 ];
1219 l0 = [ (l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2 ];
1220 scaleTo(d3.event.scale * scale0);
1221 }
1222 translateTo(p0, l0);
1223 touchtime = null;
1224 dispatch(event.of(this, arguments));
1225 }
1226 return d3.rebind(zoom, event, "on");
1227 };
1228 var d3_behavior_zoomInfinity = [ 0, Infinity ];

Callers

nothing calls this directly

Calls 3

scaleToFunction · 0.85
translateToFunction · 0.85
dispatchFunction · 0.85

Tested by

no test coverage detected