字母导航使用touchmove失效
发布于 6 年前 作者 yongcai 2408 次浏览 来自 问答

导航用的

<view “search-index”>

   <view< p=""></view<>

       id="{{item.name}}"

       wx:for="{{xxxxxIndexList}}"

       wx:for-item=“item”

       data-item="{{item}}"

       catchtouchstart=“handleOnSearchbarIndexTouchStar”

       catchtouchmove=“handleOnSearchbarIndexTouchMove”

       catchtouchend=“handleOnSearchbarIndexTouchEnd” >

       {{item.name}}

 

ABCDEFGHIJKLMNOPQRSTUVWXYZ

当在A上手指触摸动作开始手指触摸动作结束 都能正常触发对应catchtouchstart 、catchtouchend,在A上进行手指触摸后移动也可以触发catchtouchmove ,但是当从A移动到B后手指 触摸动作结束 不能触发B的catchtouchmove 和 catchtouchend 函数,catchotouchend函数触发的是A的,B的catchtouchmove直接不触发了,不是很清楚原因。

回到顶部