forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTouchRepeat.json
More file actions
153 lines (137 loc) · 3.73 KB
/
TouchRepeat.json
File metadata and controls
153 lines (137 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-directives/touch-repeat"
},
"value": {
"type": "Function",
"desc": "Handler for touch-repeat (use a non-function to disable)",
"params": {
"details": {
"type": "Object",
"desc": "Event details",
"definition": {
"evt": {
"type": "Object",
"desc": "Original JS event Object",
"__exemption": [ "examples" ]
},
"touch": {
"type": "Boolean",
"desc": "Triggered by a touch event"
},
"mouse": {
"type": "Boolean",
"desc": "Triggered by a mouse event"
},
"keyboard": {
"type": "Boolean",
"desc": "Triggered by a keyboard event"
},
"position": {
"type": "Object",
"desc": "Event Position Object; Supplied ONLY if it's a touch or mouse event",
"definition": {
"top": {
"type": "Number",
"desc": "Vertical offset from top of window",
"examples": [ 235 ]
},
"left": {
"type": "Number",
"desc": "Horizontal offset from left of window",
"examples": [ 235 ]
}
}
},
"keyCode": {
"type": "Number",
"desc": "Keycode; Supplied ONLY if it's a keyboard event",
"examples": [ 65 ]
},
"duration": {
"type": "Number",
"desc": "How long it took to trigger the event (in milliseconds)",
"examples": [ 612 ]
},
"repeatCount": {
"type": "Number",
"desc": "Handler called for nth time",
"examples": [ 2 ]
},
"startTime": {
"type": "Number",
"desc": "Unix timestamp of the moment when event started; Equivalent to Date.now()",
"examples": [ 1558603256472 ]
}
}
}
},
"returns": null,
"examples": [ "v-touch-repeat=\"fnToCall\"", "v-touch-repeat=\"void 0\"" ]
},
"arg": {
"type": "String",
"desc": "String of numbers (at least one number) separated by ':' which defines the amount of time to wait for 1st handler call, 2nd, 3rd and so on; All subsequent calls will use last value as time to wait until triggering",
"default": "0:600:300",
"examples": [ "v-touch-repeat:0:400=\"fnToCall\"" ]
},
"modifiers": {
"capture": {
"type": "Boolean",
"desc": "Use capture for touchstart event"
},
"mouse": {
"type": "Boolean",
"desc": "Listen for mouse events too"
},
"mouseCapture": {
"type": "Boolean",
"desc": "Use capture for mousedown event"
},
"keyCapture": {
"type": "Boolean",
"desc": "Use capture for keydown event"
},
"esc": {
"type": "Boolean",
"desc": "Catch ESC key"
},
"tab": {
"type": "Boolean",
"desc": "Catch TAB key"
},
"enter": {
"type": "Boolean",
"desc": "Catch ENTER key"
},
"space": {
"type": "Boolean",
"desc": "Catch SPACE key"
},
"up": {
"type": "Boolean",
"desc": "Catch UP arrow key"
},
"left": {
"type": "Boolean",
"desc": "Catch LEFT arrow key"
},
"right": {
"type": "Boolean",
"desc": "Catch RIGHT arrow key"
},
"down": {
"type": "Boolean",
"desc": "Catch DOWN key"
},
"delete": {
"type": "Boolean",
"desc": "Catch DELETE key"
},
"[keycode]": {
"type": "Number",
"desc": "Key code to catch",
"examples": [ "v-touch-repeat.68=\"fnToCall\"" ]
}
}
}