猿问

touchend 在安卓 不触发

touchend 在安卓上失效

用户按下元素 执行
document.querySelector(".spinner").addEventListener('touchstart', function(event) {
    $(".y-con").find('span').text('倾听中...');
    wx.startRecord({        cancel: function () {
          alert('用户拒绝授权录音');
          $(".yuyin").hide();
          $(".y-con").find('span').text('请说话...');
        }
    });
})
用户 离开元素 执行

在 离开 元素 时 touchend 失效! 再次点击 元素时 touchend 才生效!

这个是怎么回事?


翻过高山走不出你
浏览 1256回答 1
1回答

互换的青春

莫非你用的是小米手机或者MIUI?记得以前MIUI对rom里的WebView内核做了修改。导致一些事件有问题
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答