Content-Length: 330743 | pFad | http://github.com/NativeScript/NativeScript/pull/950/files

DE Gestures ios event by enchev · Pull Request #950 · NativeScript/NativeScript · GitHub
Skip to content

Gestures ios event #950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions apps/ui-tests-app/pages/gestures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,43 +63,43 @@ export function createPage() {
});

tapLabel.on(gestures.GestureTypes.tap, function (args: gestures.GestureEventData) {
tapLabel.text = "Tap gesture detected";
tapLabel.text = "Tap gesture detected, " + (args.object === tapLabel);
});

var observer1 = tapLabel.getGestureObservers(gestures.GestureTypes.tap)[0];

doubletapLabel.on(gestures.GestureTypes.doubleTap, function (args: gestures.GestureEventData) {
doubletapLabel.text = "Double Tap gesture detected";
doubletapLabel.text = "Double Tap gesture detected, " + (args.object === doubletapLabel);
});

var observer2 = doubletapLabel.getGestureObservers(gestures.GestureTypes.doubleTap)[0];

longpressLabel.on(gestures.GestureTypes.longPress, function (args: gestures.GestureEventData) {
longpressLabel.text = "Long Press gesture detected";
longpressLabel.text = "Long Press gesture detected, " + (args.object === longpressLabel);
});

var observer3 = longpressLabel.getGestureObservers(gestures.GestureTypes.longPress)[0];

swipeLabel.on(gestures.GestureTypes.swipe, function (args: gestures.SwipeGestureEventData) {
swipeLabel.text = "Swipe Direction: " + args.direction;
swipeLabel.text = "Swipe Direction: " + args.direction + ", " + (args.object === swipeLabel);
});

var observer4 = swipeLabel.getGestureObservers(gestures.GestureTypes.swipe)[0];

panLabel.on(gestures.GestureTypes.pan, function (args: gestures.PanGestureEventData) {
panLabel.text = "Pan deltaX:" + args.deltaX + "; deltaY:" + args.deltaY + ";";
panLabel.text = "Pan deltaX:" + args.deltaX + "; deltaY:" + args.deltaY + ";" + ", " + (args.object === panLabel);
});

var observer5 = panLabel.getGestureObservers(gestures.GestureTypes.pan)[0];

pinchLabel.on(gestures.GestureTypes.pinch, function (args: gestures.PinchGestureEventData) {
pinchLabel.text = "Pinch Scale: " + args.scale;
pinchLabel.text = "Pinch Scale: " + args.scale + ", " + (args.object === pinchLabel);
});

var observer6 = pinchLabel.getGestureObservers(gestures.GestureTypes.pinch)[0];

rotaionLabel.on(gestures.GestureTypes.rotation, function (args: gestures.RotationGestureEventData) {
rotaionLabel.text = "Rotation: " + args.rotation;
rotaionLabel.text = "Rotation: " + args.rotation + ", " + (args.object === rotaionLabel);
});

var observer7 = rotaionLabel.getGestureObservers(gestures.GestureTypes.rotation)[0];
Expand Down
2 changes: 1 addition & 1 deletion ui/gestures/gestures.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class UIGestureRecognizerImpl extends NSObject {
view: target,
ios: recognizer,
android: undefined,
object: view,
object: target,
eventName: definition.toString(type),
};

Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/pull/950/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy