Questions tagged [fastclick.js]

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.

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.

FastClick is developed by FT Labs, part of the Financial Times.

Compatibility

The library has been deployed as part of the FT Web App and is tried and tested on the following mobile browsers:

  • Mobile Safari on iOS 3 and upwards
  • Chrome on iOS 5 and upwards
  • Chrome on Android (ICS)
  • Opera Mobile 11.5 and upwards
  • Android Browser since Honeycomb
  • PlayBook OS 1 and upwards

FastClick doesn't attach any listeners on desktop browsers as it is not needed. Those that have been tested are:

  • Safari
  • Chrome
  • Internet Explorer
  • Firefox
  • Opera
37 questions
30
votes
6 answers

Can I Fastclick ReactJS running in Cordova

Does fastclick work with ReactJS's event system? It doesn't seem to be taking when run through Cordova onto iOS or Android. If not, is there another way of getting the same results. My app has no double-tap functionality so I'd like to remove that…
nicholas
  • 14,184
  • 22
  • 82
  • 138
14
votes
2 answers

Is there a way to prevent fastclick from firing “active” state on scroll?

I’m using FastClick on a page with large links because I want to bypass the 300ms delay for taps in mobile browsers. I have a “highlight” style for the links’ :active states and it is properly firing quickly, thanks to FastClick. My problem is that…
Joel Farris
  • 510
  • 1
  • 6
  • 23
14
votes
3 answers

How to use FastClick.js with Phonegap and JQM?

I've tried a few different ways to remove the 300ms delay due to the webkit browsers handling of touch events. The library, FastClick.js, seems to be the preferred method, yet I'm having a little trouble implementing it. I've included it and also…
user2400026
13
votes
1 answer

Debugging $digest already in progress error

I'm building a complex hybrid app and have been testing on a real device. Occasionally, I'm getting the dreaded $digest already in progress error from Angular - especially, it appears to be after a somewhat long digest cycle. From the stack trace…
10
votes
1 answer

Fastclick.js causes Leaflet.js clicks to be ignored

I am developing a Cordova app which has a map built with Leafletjs at the heart of it. The map has markers which when clicked pop up an info box. I want to get rid of the 300ms delay on links around the site in general - basically on all of the…
el_nariz
  • 259
  • 4
  • 15
8
votes
3 answers

iOS Standalone App 300ms Click Delay

Last year webkit removed the 350ms delay for iOS. When I run my website in Safari's mobile browser, the delay no longer exists, and works as expected. However, when I run my web application in standalone mode, the delay exists, and is blatantly…
contactmatt
  • 18,116
  • 40
  • 128
  • 186
5
votes
1 answer

Dart Cordova+Polymer+Angular2+FastClick

How can I eliminate the ~300ms tap delay on iOS devices when using Dart Polymer's paper-elements together with Angular 2? e.g. In an Angular 2 component, if I have an HTML template that includes paper-button with (click)="myFunc()", in iOS devices,…
Alon Amir
  • 4,913
  • 9
  • 47
  • 86
4
votes
1 answer

Bootstrap Datetimepicker not working in Safari

I'm using eonasdan's bootstrap datetimepicker plugin for my website. My website is running in ASP.NET MVC 5, it has jQuery 1.10.2, bootstrap 3.3.6, requirejs and several other plugins. The problem I'm having is that the datetimepicker is not working…
4
votes
1 answer

How to get Chosen and FastClick to work on mobile device

I'm trying to add FastClick to a site that already uses the Chosen jQuery plugin for selects. With FastClick, the selection boxes simply stop responding to taps on mobile browsers. This can also be replicated with Chrome device emulation. You can…
OlliM
  • 7,023
  • 1
  • 36
  • 47
4
votes
6 answers

fastclick.js JQuery Mobile Phonegap and Android

I can't get all of these to work together. I have phonegap/JQM running with fastclick.js perfectly on iOS. It's a dream. But for some reason I still get a 300ms delay on android. I put some alerts in and the code is being called. It's baffling…
Chase Roberts
  • 9,082
  • 13
  • 73
  • 131
4
votes
3 answers

Initialising fastclick with requirejs

I use requirejs with fastclick. I get the following error: Uncaught TypeError: Cannot set property 'trackingClick' of undefined in Fastclick.js line 30 which does: this.trackingClick = false; In config.js I run app.js: require.config({ paths:…
Dan Schien
  • 1,392
  • 1
  • 17
  • 29
3
votes
2 answers

Import FastClick

I'm using FastClick with FastClick.d.ts. TSC is using module: "commonjs" and I'm bundling with Webpack. I can't figure out how to reference FastClick. How can I import FastClick into TypeScript? If I do this: import {FastClick} from…
Aaron Beall
  • 49,769
  • 26
  • 85
  • 103
3
votes
0 answers

FastClick Issue with webkit-overflow-scrolling

I'm developing a cross-platform html5 app using cordova that is targeting android and iOS. I'm having issues with fastclick on iOS devices. basically, in some cases when a click occurs during a scroll, it fires a click for the wrong element. it…
YakirNa
  • 519
  • 1
  • 5
  • 15
3
votes
1 answer

Is fastclick.js implemented?

The problem I am encountering is that when I test the 300 ms delay by clicking on some buttons on a website, I notice no delay. But when I load the application too phonegap, then I touch the buttons on a tablet, I notice the 300 ms delay directly..…
Dler Hasan
  • 233
  • 1
  • 11
2
votes
1 answer

FastClick interfering with jQuery UI Selectmenu on touch

I'm trying to implement a jQuery UI Selectmenu while using FastClick. Tapping one of the entries of the selecmenu's dropdown list is not registering on touch, closing the list without actually selecting the tapped list item. To remedy this, I'm…
Jerome Dahdah
  • 273
  • 2
  • 14
1
2 3