(touch)
| 48 | } |
| 49 | |
| 50 | export function removeTouch(touch) { |
| 51 | const identifier = touch.identifier; |
| 52 | const target = touch.target; |
| 53 | if (activeTouches.get(target) != null) { |
| 54 | if (activeTouches.get(target).has(identifier)) { |
| 55 | activeTouches.get(target).delete(identifier); |
| 56 | } else { |
| 57 | console.error( |
| 58 | 'Touch with identifier %s does not exist. Cannot record touch end without a touch start.', |
| 59 | identifier, |
| 60 | ); |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | export function getTouches() { |
| 66 | const touches = []; |