Search code examples
jqueryinlineswipe

jQuery does inline swipe event listener exist?


i have an inline onclick="myFunction('various parameters to pass to the function')" on dynamically created elements that i would like to call on an hypothetical inline onswipe too. I was wondering if the jQuery .on('swipe' .. can be used inline like that? doing onswipe="myFunction()" or how can i achieve that otherwise? thanks


Solution

  • The closest equivalent standard event is touchmove, so you can use ontouchmove="..."