我使用的是jQuery手机的swiperight和swipeleft事件。它们在我的台式pc和iphone上开发时都工作得很好,但当我在我的windows phone上测试它时,这两个事件都不会触发。
看起来很简单:
<div class="swiper">Content</div>和脚本
$(".swiper").swiperight(function(event){
alert('swiperight');
});
$(".swiper").swipeleft(function(event){
alert('swipeleft');
});$(".swiper").live('swipeleft swiperight')也有同样的问题
有人有解决这个问题的办法吗?根据http://jquerymobile.com/blog/2012/08/01/announcing-jquery-mobile-1-2-0-alpha/的说法,他们对Windows Phone有A级支持。
发布于 2012-12-10 23:52:35
不幸的是,Windows Phone上的Internet Explorer浏览器不支持触摸事件。这意味着用于滑动的jQuery移动事件在Windows Phone上不起作用。据我所知,没有解决方案或解决办法,因为浏览器不会触发必要的事件来检测滑动动作。
发布于 2015-05-02 00:13:52
由于windows phone7设备不支持鼠标移动事件,向右/向左滑动事件将不起作用。此问题已在windows Phone 8设备中解决。
https://stackoverflow.com/questions/13804179
复制相似问题