()
| 6 | * - Android: `{"changedTouches": [[Circular]], "identifier": 0, "locationX": 160, "locationY": 40.3636360168457, "pageX": 180, "pageY": 140.36363220214844, "target": 53, "targetSurface": -1, "timestamp": 10290805, "touches": [[Circular]]}` |
| 7 | */ |
| 8 | export function buildTouchEvent() { |
| 9 | return { |
| 10 | ...baseSyntheticEvent(), |
| 11 | nativeEvent: { |
| 12 | changedTouches: [] as unknown[], |
| 13 | identifier: 0, |
| 14 | locationX: 0, |
| 15 | locationY: 0, |
| 16 | pageX: 0, |
| 17 | pageY: 0, |
| 18 | target: 0, |
| 19 | timestamp: Date.now(), |
| 20 | touches: [] as unknown[], |
| 21 | }, |
| 22 | currentTarget: { measure: () => {} }, |
| 23 | }; |
| 24 | } |
| 25 | |
| 26 | export type TouchEvent = ReturnType<typeof buildTouchEvent>; |
| 27 |
no test coverage detected
searching dependent graphs…