Skip to content

Commit d49699b

Browse files
authored
Merge pull request #133 from ctataryn/patch-1
Added more clarity about double-tap/single-tap
2 parents bf959e0 + bfa3ca6 commit d49699b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,17 @@ This will generate the file `ember-gestures/recognizers/name.js`.
134134
Once you've filled out the recognizer (see [./addon/recognizers/](./addon/recognizers/) for examples),
135135
it will be available to use in your app just like the default recognizers.
136136

137+
##### Note
138+
139+
Although we have provided an example for `double-tap` and `single-tap` in the `addon/recognizers` folder, they
140+
are for demo purposes only and do not ship with the actual addon because they are non-standard.
141+
If you'd like to enable these recognizers for your own app; for instance `double-tap`; execute:
142+
143+
`ember g recognizer double-tap`
144+
145+
An `.app/ember-gestures/recognizers/double-tap.js` file will be created. Inspect its contents and replace
146+
it with the example `double-tap.js` from this addon's codebase.
147+
137148
#### Increase the size of touchable areas to improve user experience on small controls
138149

139150
Sometimes smaller buttons or critical buttons need a larger capture area than their visible area.

0 commit comments

Comments
 (0)