滑动删除同时标签带有点击事件,点击的时候滑块也移动,如何解决呢?

发布于 8 年前作者 wjia8319 次浏览最后编辑 8 年前来自 ask
<movable-view class="itmem_wrap" direction="horizontal" inertia="true" out-of-bounds="true" x="{{item.x}}" damping="300" data-index="{{index}}" bind:touchstart="touchMoveStartHandle" bind:touchend="touchMoveEndHandle" wx:key='{{index}}' data-id='{{item.id}}' bindtap='goDetail'>
2 回复
gaochao
gaochao1 楼6 年前

内层把touch事件catch掉,或者点击也用touch来实现,看touchend的时候touchmove的距离

li91
li912 楼6 年前

放个效果图看看