For an academic project, I am trying to implement a drag drop functionality on a list of some items, which i have achieved using dragula.js
I prepared a demo for same on jsfiddle, which can be found on below link
https://jsfiddle.net/4gadu5zc/
<div class="button">
Add Element
</div>
<div class="list_wrap" id="list_1">
<div class="list-item">
Item 1
</div>
<div class="list-item">
Item 2
</div>
<div class="list-item">
Item 3
</div>
<div class="list-item">
Item 4
</div>
</div>
<div class="list_wrap">
<div class="list-item">
Item 5
</div>
<div class="list-item">
Item 6
</div>
<div class="list-item">
Item 7
</div>
<div class="list-item">
Item 8
</div>
</div>
But now i want add a swipe functionality on same item so that i can show some option with each item. To make you better understand this i prepared the below image.. enter image description here
I searched on internet I found the swipe functionality in ionic framework but not drag drop. I find hammer.js that supports all touch event but i do not know how to implement drag-srop and swipe using hammer on same element and also i do not know if the same thing will work on a dynamic element. Please help...