(event: TouchEvent)
| 1059 | } |
| 1060 | |
| 1061 | function getTouchFromEvent(event: TouchEvent): Touch | null { |
| 1062 | const {targetTouches} = event; |
| 1063 | if (targetTouches.length > 0) { |
| 1064 | return targetTouches[0]; |
| 1065 | } |
| 1066 | return null; |
| 1067 | } |
| 1068 | |
| 1069 | function getTouchById(event: TouchEvent, pointerId: null | number): null | Touch { |
| 1070 | const changedTouches = event.changedTouches; |