vendredi 28 octobre 2016

How to do an If on swipe?

I want to do a if on swipe then do this otherwise do something else but i cant seem to get it working?

JS:

if ($("p").on("swipe") == true)
{
  alert("You swiped!");
}
else
{
  //Stuff
}

Aucun commentaire:

Enregistrer un commentaire