[英]How to trigger zepto swipe events with device interactions
我有这个直接的zepto滑动代码
$(function(){
$(document).on('swipeRight',function(e){
alert("right");
});
$(document).on('swipeLeft', function(e){
alert("left");
});
});
我似乎无法从iOSSimulator或实际设备上触发此操作。 然而,我可以从控制台调用$(document).trigger('swipeRight')
并触发事件。 我没有看到任何明显的错误输出
使用Zepto v1.0-1-ga3cab6c
IOS 7
我需要包括zepto'touch'模块。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.