Adding jquery mobile swipe event

后端 未结 5 2112
春和景丽
春和景丽 2020-12-04 15:45

I have a listview and what I am trying to do is add a swipe event on the links. For example, if a user swipes the first link it goes to that page. Is this possible with list

5条回答
  •  旧时难觅i
    2020-12-04 16:35

    Live Example:

    • http://jsfiddle.net/yxzZf/4/

    JS:

    $("#listitem").swiperight(function() {
        $.mobile.changePage("#page1");
    });
    

    HTML:

    • Swipe Right to view Page 1

    Yeah!
    You Swiped Right to view Page 1

    Related:

    • Adding JQM swipe event to listview link

提交回复
热议问题