PuruVJ / neodrag

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

data-neodrag-count #71

Open PuruVJ opened 1 year ago

PuruVJ commented 1 year ago

Append a data-neodrag-count on the root node. This will be the number of times the thing has been dragged.

Also expose this in events? 🤔

houtan-rocky commented 6 months ago

What would be the usecase for this?

PuruVJ commented 6 months ago

Could be useful for tests I reckon. Won't be hard to do, just count++ in dragStart, slap it to data.neodrag-count and we're good to go