jQuery Calendar event-clicks not firing with ftLab fast click
if all else fails you can inspect which events are linked to your elements with visual event: http://www.sprymedia.co.uk/article/visual+event This adds an overlayer to any web page and let you visually inspect the JS code that's linked to an element (it shows you the piece of code in a pop up).
this way you can easily see if everything is set up correctly.
PS: I have no link to this tool or it's makers.
I had similar issue. fastclickjs
blocks every jQuery .click()
. But if you dispatch event without jQuery everything works fine.
Well this is an old question, but maybe it helps somebody.
I had a similar problem, and even fastclick.js
didn't help and wasn't fast enough on the iPad.
The problem is that on a normal browser click event (on an iPad) has a delay of 300ms on touchstart and again 300ms on touchend.
fastclick.js
also had some conflicts like yours with the calendar.
So i just wrote an own directive and called it ng-mobile-click
.
Directive ngMobileClick:
App.directive("ngMobileClick", [function () { return function (scope, elem, attrs) { elem.bind("touchstart click", function (e) { e.preventDefault(); e.stopPropagation(); scope.$apply( attrs["ngMobileClick"] ); }); }}]);
Usage in templates:
<input type="button" value="somevalue" ng-mobile-click="someFunction(someParam)"/>
Advantage:Will never conflict with standard click events.
DisadvantageYou have to refactor your code where you need it