The sample code is as follows:
$('#list').mobiscroll().listview({
stages: [{
percent: -20,
color: 'red',
icon: 'remove',
action: function (event, inst) {
**inst.remove(event.target);**
return false;
}
}]
});
I want the user to be able to slide the item which triggers an action, but I don’t want the row to be removed after the fact, so I deleted the following line:
inst.remove(event.target)
Obviously this prevents the row from being removed, which is good. However, it no longer bounces back the way sliding from the other side does. It just gets stuck in the middle. How can I fix it so that it bounces back?