| 447 | } |
| 448 | |
| 449 | function _getPanData(args: GestureEventData, view: UIView): PanGestureEventData { |
| 450 | const recognizer = <UIPanGestureRecognizer>args.ios; |
| 451 | |
| 452 | return <PanGestureEventData>{ |
| 453 | type: args.type, |
| 454 | view: args.view, |
| 455 | ios: args.ios, |
| 456 | android: undefined, |
| 457 | deltaX: recognizer.translationInView(view).x, |
| 458 | deltaY: recognizer.translationInView(view).y, |
| 459 | object: args.view, |
| 460 | eventName: toString(args.type), |
| 461 | state: getState(recognizer), |
| 462 | }; |
| 463 | } |
| 464 | |
| 465 | function _getRotationData(args: GestureEventData): RotationGestureEventData { |
| 466 | const recognizer = <UIRotationGestureRecognizer>args.ios; |