Closed parox2014 closed 8 years ago
Hi,我这边试了一下,不会出现你说的问题。你那里是 100% 会触发吗?有没有使用 fastclick 之类的库?
@Leopoldthecoder 100%会触发,确实用了fastclick,是它引起的吗?有没有办法解决,谢谢大大
刚才把fastclick去掉了,确实没问题了
fastclick 的确是有这个问题,https://github.com/ftlabs/fastclick/issues/178 这里也有不少人遇到,可以看看 https://github.com/guardian/frontend/issues/9947 这里的方案。看起来最简单的方法是把 @ click 改成 @touchstart。
代码如下: