FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(iOS-gestures) touch delegate does not call base class touch metho… · NativeScript/NativeScript@284cd54 · GitHub

Commit 284cd54

Browse files
authored andcommitted
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”
1 parent fe35567 commit 284cd54

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tns-core-modules/ui/gestures/gestures.ios.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,18 +353,22 @@ class TouchGestureRecognizer extends UIGestureRecognizer {
353353

354354
touchesBeganWithEvent(touches: NSSet<any>, event: any): void {
355355
this.executeCallback(TouchAction.down, touches, event);
356+
this.view.touchesBeganWithEvent(touches, event);
356357
}
357358

358359
touchesMovedWithEvent(touches: NSSet<any>, event: any): void {
359360
this.executeCallback(TouchAction.move, touches, event);
361+
this.view.touchesMovedWithEvent(touches, event);
360362
}
361363

362364
touchesEndedWithEvent(touches: NSSet<any>, event: any): void {
363365
this.executeCallback(TouchAction.up, touches, event);
366+
this.view.touchesEndedWithEvent(touches, event);
364367
}
365368

366369
touchesCancelledWithEvent(touches: NSSet<any>, event: any): void {
367370
this.executeCallback(TouchAction.cancel, touches, event);
371+
this.view.touchesCancelledWithEvent(touches, event);
368372
}
369373

370374
private executeCallback(action: string, touches: NSSet<any>, event: any): void {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL