button组件longpress事件页面刷新,有时会无效

发布于 7 年前作者 udong12354 次浏览最后编辑 7 年前来自 ask

button组件longpress事件在进入页面后,马上进行页面下拉刷新操作,有时longpress事件没有触发,而touchstart事件可以触发。

<button catchlongpress='start' catchtouchmove="move" catchtouchend='stop'>长按button>

将 catchlongpress 改成 catchtouchstart 不管怎么刷新页面都能触发。

请官方童鞋看看。

2 回复
jing83
jing831 楼6 年前

是的  我也遇到过这个问题