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

fix(iOS-gestures) touch delegate does not call base class touch methods by farfromrefug · Pull Request #6113 · NativeScript/NativeScript · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .ts  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 4 additions & 0 deletions tns-core-modules/ui/gestures/gestures.ios.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

Back | FazBrowse Home | New Git URL