Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
Thumbs.db
Desktop.ini
build
.idea
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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.

This Ntree fork fixes a bug on touch. https://github.com/ftlabs/fastclick/issues/466

FastClick is developed by [FT Labs](http://labs.ft.com/), part of the Financial Times.

[Explication en français](http://maxime.sh/2013/02/supprimer-le-lag-des-clics-sur-mobile-avec-fastclick/).
Expand Down
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "fastclick",
"main": "lib/fastclick.js",
"version": "1.0.6",
"ignore": [
"**/.*",
"component.json",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fastclick",
"repo": "ftlabs/fastclick",
"description": "Polyfill to remove click delays on browsers with touch UIs.",
"version": "1.0.3",
"version": "1.0.6",
"main": "lib/fastclick.js",
"scripts": [
"lib/fastclick.js"
Expand Down
2 changes: 1 addition & 1 deletion lib/fastclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@
// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
if (!this.needsClick(targetElement)) {
event.preventDefault();
this.sendClick(targetElement, event);
window.setTimeout(this.sendClick.bind(this,targetElement, event));
}

return false;
Expand Down