滑动删除同时标签带有点击事件,点击的时候滑块也移动,如何解决呢?
发布于 7 年前 作者 wjia 8184 次浏览 来自 问答
<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 回复

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

放个效果图看看

回到顶部