(event: TouchEvent)
| 1038 | } |
| 1039 | |
| 1040 | function getTouchFromEvent(event: TouchEvent): Touch | null { |
| 1041 | const {targetTouches} = event; |
| 1042 | if (targetTouches.length > 0) { |
| 1043 | return targetTouches[0]; |
| 1044 | } |
| 1045 | return null; |
| 1046 | } |
| 1047 | |
| 1048 | function getTouchById(event: TouchEvent, pointerId: null | number): null | Touch { |
| 1049 | const changedTouches = event.changedTouches; |