Authored by ccbikai(👎🏻🍜)

取消touchend时间

... ... @@ -45,22 +45,26 @@ seckillObj = {
self.$productList = $('.product-list');
// 在app webview中click捕获不到translate样式后的新位置
let $navLis = $el.$navUl.find('>li');
$navLis.on('touchmove', function() {
self.navMove = true;
});
$navLis.on('touchend', function(event) {
if (self.navMove) {
self.navMove = false;
return;
}
setTimeout(() => {
self.selectTime(event.currentTarget);
}, 200);
$el.$navUl.find('>li').click(function(event) {
self.selectTime(event.currentTarget);
});
// 在app webview中click捕获不到translate样式后的新位置
// let $navLis = $el.$navUl.find('>li');
// $navLis.on('touchmove', function() {
// self.navMove = true;
// });
// $navLis.on('touchend', function(event) {
// if (self.navMove) {
// self.navMove = false;
// return;
// }
// setTimeout(() => {
// self.selectTime(event.currentTarget);
// }, 200);
// });
$(window).resize(function() {
self.initNav();
});
... ...