I have a small problem with touch devices, especially iOS. So I’m building a mobile website and I’m using both “click” and “touchend” events to trigger some functions. The problem is that sometimes the function is called twice.
I’ve tried to check if the event was trigger and cancel the second one but it doesn’t seem to work.
Here’s what I have so far http://jsfiddle.net/Bdk8t/ .
Fast link to test on devices http://jsfiddle.net/Bdk8t/embedded/result/