我想要将jQuery mobile的swiperight event与图像结合使用,该图像似乎不起作用。滑动,swipeleft,swiperight事件不会在图像上触发
HTML:
<div id="one"><img src="http://jquerymobile.com/wp-content/uploads/2012/09/jquery-mobile-logo-03.png"/></div>
<div id="two">works</div>
JS:
$("#one").on("swiperight", function() {
alert("does not work");
});
$("#two").on("swiperight", function() {
alert("works");
});