@@ -63,43 +63,43 @@ export function createPage() {
63
63
} ) ;
64
64
65
65
tapLabel . on ( gestures . GestureTypes . tap , function ( args : gestures . GestureEventData ) {
66
- tapLabel . text = "Tap gesture detected" ;
66
+ tapLabel . text = "Tap gesture detected, " + ( args . object === tapLabel ) ;
67
67
} ) ;
68
68
69
69
var observer1 = tapLabel . getGestureObservers ( gestures . GestureTypes . tap ) [ 0 ] ;
70
70
71
71
doubletapLabel . on ( gestures . GestureTypes . doubleTap , function ( args : gestures . GestureEventData ) {
72
- doubletapLabel . text = "Double Tap gesture detected" ;
72
+ doubletapLabel . text = "Double Tap gesture detected, " + ( args . object === doubletapLabel ) ;
73
73
} ) ;
74
74
75
75
var observer2 = doubletapLabel . getGestureObservers ( gestures . GestureTypes . doubleTap ) [ 0 ] ;
76
76
77
77
longpressLabel . on ( gestures . GestureTypes . longPress , function ( args : gestures . GestureEventData ) {
78
- longpressLabel . text = "Long Press gesture detected" ;
78
+ longpressLabel . text = "Long Press gesture detected, " + ( args . object === longpressLabel ) ;
79
79
} ) ;
80
80
81
81
var observer3 = longpressLabel . getGestureObservers ( gestures . GestureTypes . longPress ) [ 0 ] ;
82
82
83
83
swipeLabel . on ( gestures . GestureTypes . swipe , function ( args : gestures . SwipeGestureEventData ) {
84
- swipeLabel . text = "Swipe Direction: " + args . direction ;
84
+ swipeLabel . text = "Swipe Direction: " + args . direction + ", " + ( args . object === swipeLabel ) ;
85
85
} ) ;
86
86
87
87
var observer4 = swipeLabel . getGestureObservers ( gestures . GestureTypes . swipe ) [ 0 ] ;
88
88
89
89
panLabel . on ( gestures . GestureTypes . pan , function ( args : gestures . PanGestureEventData ) {
90
- panLabel . text = "Pan deltaX:" + args . deltaX + "; deltaY:" + args . deltaY + ";" ;
90
+ panLabel . text = "Pan deltaX:" + args . deltaX + "; deltaY:" + args . deltaY + ";" + ", " + ( args . object === panLabel ) ;
91
91
} ) ;
92
92
93
93
var observer5 = panLabel . getGestureObservers ( gestures . GestureTypes . pan ) [ 0 ] ;
94
94
95
95
pinchLabel . on ( gestures . GestureTypes . pinch , function ( args : gestures . PinchGestureEventData ) {
96
- pinchLabel . text = "Pinch Scale: " + args . scale ;
96
+ pinchLabel . text = "Pinch Scale: " + args . scale + ", " + ( args . object === pinchLabel ) ;
97
97
} ) ;
98
98
99
99
var observer6 = pinchLabel . getGestureObservers ( gestures . GestureTypes . pinch ) [ 0 ] ;
100
100
101
101
rotaionLabel . on ( gestures . GestureTypes . rotation , function ( args : gestures . RotationGestureEventData ) {
102
- rotaionLabel . text = "Rotation: " + args . rotation ;
102
+ rotaionLabel . text = "Rotation: " + args . rotation + ", " + ( args . object === rotaionLabel ) ;
103
103
} ) ;
104
104
105
105
var observer7 = rotaionLabel . getGestureObservers ( gestures . GestureTypes . rotation ) [ 0 ] ;
0 commit comments