Có thể điều chỉnh khoảng cách cần thiết để kích hoạt sự kiện vuốt hay không, và nếu nó được thực hiện như thế nào ?.Điều chỉnh khoảng cách của một sự kiện vuốt trong điện thoại di động jquery
Đây mã im nói về:
$('.page2').bind('swiperight', function(event, ui){
$.mobile.changePage(
$('.page1'),
{
allowSamePageTransition: true,
transition: 'slide',
reverse: 'true',
showLoadMsg: false,
reloadPage: true,
}
);
return false;
});
$ .event.special.swipe. horizontalDistanceThreshold = value; Đã làm các trick :) Thx – luQ