mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -396,6 +396,7 @@ var toc = [
|
||||
"browser-policy",
|
||||
"coffeescript",
|
||||
"d3",
|
||||
"fastclick",
|
||||
"force-ssl",
|
||||
"jquery",
|
||||
"less",
|
||||
|
||||
@@ -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}}
|
||||
|
||||
25
docs/client/packages/fastclick.html
Normal file
25
docs/client/packages/fastclick.html
Normal 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>
|
||||
Reference in New Issue
Block a user