3
我正嘗試在移動瀏覽器上使用tap/doubletap事件。我有以下代碼:在移動設備上點擊並雙擊事件
$(function() {
$(".vppop").mouseenter(function() { // Desktop browsers only
$(".vppop").addClass("vppopscale");
});
$(".vppop").mouseleave(function() { // Desktop browsers only
$(".vppop").removeClass("vppopscale");
});
$(".vppop").on('tap', function(e) { // Mobile browsers only
e.preventDefault(); // Stop from following link
$(".vppop").addClass("vppopscale").delay(300).removeClass("vppopscale");
});
$(".vppop").on('doubletap', function() { // Mobile browsers only
// Go to Link
});
});
使用手指插件針對移動事件:
無法獲得自來水事件,防止鏈路以下&不知道我需要doubletap事件得到它遵循鏈接。謝謝您的幫助。