How to use "tapToClick"

Jul 18, 2011 at 2:49 PM

Hello all,

I'm making a Windows Phone-like interface for mobile websites, with horizontal/vertical scrolls, plus links.

However, I don't understand how to use the tapToClick: when I set it as True, nothing happens. My question is: how to get clicked element and launch event?

Here's my code:

$(document).wipetouch({ 
tapToClick: true,
wipeLeft: function(result) {  moveMenu(1);  }, 
wipeRight: function(result) {  moveMenu(-1);  }, 
wipeUp: function(result) {  scrollContent(-1);  }, 
wipeDown: function(result) {  scrollContent(1);  }
});

The website you can see: http://fleches-et-croix.fr/jquery/

Thanks for help.

Aurelien

Jul 21, 2011 at 4:03 PM

Ok, guys found: I didn't put $.click events on $(document).ready(), but outside!

Cheers !

Jul 21, 2011 at 4:07 PM

Good that you've found it :-) I was just about to test you website.