You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guide/gestures.md
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,14 @@ title: Gestures
7
7
8
8
Users can interact with UI components using gestures. NativeScript supports the following gestures:
9
9
10
-
-[tap](#tap-gesture-in-nativescript)
11
-
-[doubleTap](#double-tap-event-data)
12
-
-[longPress](#long-press-gesture-in-nativescript)
13
-
-[swipe](#swipe-gesture-in-nativescript)
14
-
-[pan](#pan-gesture-in-nativescript)
15
-
-[pinch](#pinch-gesture-in-nativescript)
16
-
-[rotation](#rotate-gesture-in-nativescript)
17
-
-[touch](#touch-gesture-in-nativescript)
10
+
-[tap](#tap-gesture)
11
+
-[doubleTap](#double-tap-gesture)
12
+
-[longPress](#long-press-gesture)
13
+
-[swipe](#swipe-gesture)
14
+
-[pan](#pan-gesture)
15
+
-[pinch](#pinch-gesture)
16
+
-[rotation](#rotate-gesture)
17
+
-[touch](#touch-gesture)
18
18
19
19
All gesture events, except `tap`, have the following data in common:
20
20
@@ -27,7 +27,7 @@ All gesture events, except `tap`, have the following data in common:
27
27
|`ios`|`UIGestureRecognizer `| Gets the underlying native iOS specific [UIGestureRecognizer](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIGestureRecognizer_Class/). |
28
28
|`android`|`android.view.GestureDetector`| Gets the underlying native android specific [gesture detector](http://developer.android.com/reference/android/view/GestureDetector.html)|
29
29
30
-
## Tap gesture
30
+
## Tap gesture {#tap-gesture}
31
31
32
32
**Action**: Briefly touching a component.
33
33
@@ -68,7 +68,7 @@ onTap(args: EventData) {
68
68
```
69
69
/// -->
70
70
71
-
## Double tap gesture
71
+
## Double tap gesture {#double-tap-gesture}
72
72
73
73
**Action**: Two taps on a component in quick succession.
**Action**: Swiftly sliding a finger across the screen. Swipes are quick and affect the screen even after the finger is lifted off the screen:
156
156
@@ -198,7 +198,7 @@ Available directions:
198
198
-`up = 4`,
199
199
-`down = 8`,
200
200
201
-
## Pan gesture
201
+
## Pan gesture {#pan-gesture}
202
202
203
203
**Action**: A pan gesture occurs when a user presses down on a component and immediately starts moving it around. Pans are executed more slowly and allow for more precision. The event stops emitting as soon as the finger is lifted off it.
0 commit comments