MCPcopy Create free account
hub / github.com/breck7/scroll / moved

Function moved

external/.d3.js:5699–5716  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

5697 emit.start(event, mode.name);
5698
5699 function moved(event) {
5700 for (const p of event.changedTouches || [event]) {
5701 for (const d of points)
5702 if (d.identifier === p.identifier) d.cur = pointer(p, that);
5703 }
5704 if (shifting && !lockX && !lockY && points.length === 1) {
5705 const point = points[0];
5706 if (abs$3(point.cur[0] - point[0]) > abs$3(point.cur[1] - point[1]))
5707 lockY = true;
5708 else
5709 lockX = true;
5710 }
5711 for (const point of points)
5712 if (point.cur) point[0] = point.cur[0], point[1] = point.cur[1];
5713 moving = true;
5714 noevent$1(event);
5715 move(event);
5716 }
5717
5718 function move(event) {
5719 const point = points[0], point0 = point.point0;

Callers

nothing calls this directly

Calls 3

pointerFunction · 0.85
noevent$1Function · 0.85
moveFunction · 0.70

Tested by

no test coverage detected