Document the fastclick package

Summary: Add a section about fastclick to the packages part of the docs

Test Plan: It's just a docs change

Reviewers: slava

Reviewed By: slava

CC: nim

Differential Revision: https://phabricator.meteor.com/D821
This commit is contained in:
Sashko Stubailo
2014-09-10 15:42:56 -07:00
3 changed files with 27 additions and 0 deletions

View File

@@ -396,6 +396,7 @@ var toc = [
"browser-policy",
"coffeescript",
"d3",
"fastclick",
"force-ssl",
"jquery",
"less",

View File

@@ -27,6 +27,7 @@ Meteor Development Group maintains the following packages:
{{> pkg_browser_policy}}
{{> pkg_coffeescript}}
{{> pkg_d3}}
{{> pkg_fastclick}}
{{> pkg_force_ssl}}
{{> pkg_jquery}}
{{> pkg_less}}

View File

@@ -0,0 +1,25 @@
<template name="pkg_fastclick">
{{#markdown}}
## `fastclick`
The FastClick package is automatically included in Meteor Cordova/PhoneGap
apps to ensure the best user experience.
From the [README on GitHub](https://github.com/ftlabs/fastclick):
"FastClick is a simple, easy-to-use library for eliminating the 300ms delay
between a physical tap and the firing of a click event on mobile browsers.
The aim is to make your application feel less laggy and more responsive while
avoiding any interference with your current logic."
In case you want to disable FastClick for certain elements, you can add the
"needsclick" class as described in the [advanced section](https://github.com/ftlabs/fastclick#ignore-certain-elements-with-needsclick)
of the FastClick documentation:
```html
<a class="needsclick">Ignored by FastClick</a>
```
{{/markdown}}
</template>