I have a bunch of click listeners in my jquery and was wondering what I need to do to get them to work on mobile devices and touch screens? So if my code is...
$(el).bind('click', function () {
//my event function
});
do I need to do like...
$(el).bind('click, touch', function () {
//my event function
});
click
is perfectly handled on touch devices as a tap
, so you don't need to do anything.
The touch device specific events are swipe
and such.