Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm building a Cordova application and click response times are slow.

I found the angular-touch plugin for Angular (which, while designed for Angular 1.2.0, looks like it would likely work with older versions of Angular, as it's really just a set of directives) but upon trying it out, I didn't get the results I wanted. Clicks still aren't firing on tap.

From what I understand, fastclick.js is a more stable alternative to angular-touch at the moment (as angular-touch is still in development). I, however, want my ng-click directives to take advantage of fastclick.

How can I integrate fastclick.js with angular - can I just include the file and init the script, or do I have to wrap fastclick behavior in ng-click (essentially what angular-touch does with its first-party code)?

Note: My app is using Angular 1.0, as it was built before the stable release.

share|improve this question
 
If clicks aren't firing on tap then you did something wrong. I've used ng-click many times and it always worked like a charm. Maybe show us some simplified code. –  TheHippo 2 days ago
 
As an alternative you could try: github.com/randallb/angular-hammer, which provides directives for binding hammer.js to angular.js. –  TheHippo 2 days ago
 
@TheHippo Sorry, wasn't clear. Clicks are firing, but after the 300ms delay, is what I meant. This makes everything fairly unresponsive. Honestly, this could be fine for the app, but if possible, I'd like to make it better. –  lunchmeat317 2 days ago
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.