bind('swipeleft swiperright') 関数の最初のオプションとして unbind('click') する必要があることがわかりました。私のスワイプは新しいページに移動するため、そのページは、離れたばかりのページの「クリック」イベントを再バインドします。私のユーティリティは、タップすると新しいカードが表示され、スワイプするとめくられるフラッシュカードです。幸運を。
$('#flashVerse').bind('swipeleft swiperight', function(event) {
console.log(event.type);
$('#flashVerse').unbind('click');
if(event.type == 'swipeleft') {
$.mobile.changePage('flashReference','flip');
} else {
$.mobile.changePage('flashReference','flip',true,false);
console.log('SWIPERIGHT');
}
});
$('#flashReference').live('pageshow',function(event,ui){
if((tipsOn() || ls.getItem('tipFlash') == '1') && ui.prevPage.attr('id')!='flashVerse') {
ls.setItem('tipFlash','0');
var msg = 'Swipe to flip the card.\n Tap for a new card.\nuse Options to turn Tips back on.';
if(phoneGap) navigator.notification.alert(msg,dummy,'Flash Cards','OK');
else alert(msg);
}
$('#lnkFlashVerse').addClass('ui-btn-active').addClass('ui-state-persist');
$('#lnkFlashReference').removeClass('ui-btn-active').removeClass('ui-state-persist');
$('#flashReference').bind('click', function(event) {
console.log(event.type);
newFlashCard();
//$('#flashReference div[data-role="content"]').append('clicked ');
});
});