| 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; |