fix(iOS-gestures) touch delegate does not call base class touch methods (#6113)

* fix ios Touch gestures super methods not being called on nativeView

* use “this.view”
This commit is contained in:
Martin Guillon
2018-08-02 10:52:35 +02:00
committed by Alexander Vakrilov
parent 8100727043
commit 7ebac7c353

View File

@@ -353,18 +353,22 @@ class TouchGestureRecognizer extends UIGestureRecognizer {
touchesBeganWithEvent(touches: NSSet<any>, event: any): void {
this.executeCallback(TouchAction.down, touches, event);
this.view.touchesBeganWithEvent(touches, event);
}
touchesMovedWithEvent(touches: NSSet<any>, event: any): void {
this.executeCallback(TouchAction.move, touches, event);
this.view.touchesMovedWithEvent(touches, event);
}
touchesEndedWithEvent(touches: NSSet<any>, event: any): void {
this.executeCallback(TouchAction.up, touches, event);
this.view.touchesEndedWithEvent(touches, event);
}
touchesCancelledWithEvent(touches: NSSet<any>, event: any): void {
this.executeCallback(TouchAction.cancel, touches, event);
this.view.touchesCancelledWithEvent(touches, event);
}
private executeCallback(action: string, touches: NSSet<any>, event: any): void {