diff --git a/.gitignore b/.gitignore index 4e6fefb2..acddb842 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Thumbs.db Desktop.ini build +.idea diff --git a/README.md b/README.md index de3f2a06..ae7b6ab2 100644 --- a/README.md +++ b/README.md @@ -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/). diff --git a/bower.json b/bower.json index 18e1abd4..a7ad7681 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,7 @@ { "name": "fastclick", "main": "lib/fastclick.js", + "version": "1.0.6", "ignore": [ "**/.*", "component.json", diff --git a/component.json b/component.json index 90891b30..77c2cfc1 100644 --- a/component.json +++ b/component.json @@ -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" diff --git a/lib/fastclick.js b/lib/fastclick.js index 3af4f9d6..5a45fc77 100644 --- a/lib/fastclick.js +++ b/lib/fastclick.js @@ -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;