Hi,
I am tying to give swipe event for a list view.But it is not working and one more info taphold event is working.
Js code:
$( function() {
$('#list li').bind( 'taphold', function( e ) {
console.log( 'You tapped and held!' );
e.stopImmediatePropagation();
return false;
} );
$('#list li').bind( 'swipe', function( e ) {
console.log( 'swiped' );
e.stopImmediatePropagation();
return false;
} );
} );
HTML code:
<div data-role="content">
<ul id="list" data-role="listview" data-theme="b">
<li><a href="#">Item1</a></li>
<li><a href="#">Item2</a></li>
<li><a href="#">Item3</a></li>
</ul>
</div>
Thanks in advance,
rajzshkr