Jexordexan / vue-slicksort

A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
http://vue-slicksort.netlify.app
Other
1.48k stars 157 forks source link

Touch event trigger will conflict with component #120

Open 18825607789 opened 4 years ago

18825607789 commented 4 years ago

Using the touch event in a custom element will cause the element drag effect to be invalid,How to solve this problem??? <SlickList :lockToContainerEdges="true" :useDragHandle="false" :pressDelay="600" v-model="dataList" helperClass="helperClass" class="slickList" axis="xy" :style="{ height: DHeight }"

<SlickItem :class="[isShake ? 'shake' : '', 'device-item']" v-for="(deviceItem, index) in dataList" :key="index" :index="index"

<div @touchstart="gotouchstart" @touchmove="gotouchmove" @touchend="gotouchend(deviceItem)"

igorpocta commented 3 years ago

image I have the same problem