button组件longpress事件页面刷新,有时会无效
发布于 6 年前 作者 udong 12207 次浏览 来自 问答

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

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

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

请官方童鞋看看。

回到顶部