解决滑动时不触发touchend事件的bug
doucment.ontouchstart = function() {
e.preventDefault();
}
原文地址 http://www.douban.com/note/425950082/
本文提供了解决在滑动操作中不触发touchend事件的问题的方法,通过在touchstart事件中使用e.preventDefault()来阻止默认行为,从而确保touchend事件能够正常触发。
解决滑动时不触发touchend事件的bug
doucment.ontouchstart = function() {
e.preventDefault();
}
原文地址 http://www.douban.com/note/425950082/
1074

被折叠的 条评论
为什么被折叠?