PuruVJ / neodrag

One Draggable to rule them all 💍
https://neodrag.dev
MIT License
1.59k stars 48 forks source link

Stopping click to pass to child #130

Open Andrioden opened 1 year ago

Andrioden commented 1 year ago

Hi, is there any way to stop a drag from ending up as an click on the child element? As I see it, its not about stopping event propagation, because its a child in this case.

I cant think of another way than to temporarily (using setTimeout) disable the childClickHandler in onDragEnd.

<div v-draggable="..."> 
   <div @click="childClickHandler">
</div>
houtan-rocky commented 6 months ago

159 Solving this issue