PuruVJ / neodrag

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

breaking: Rename events to use _ instead of : #151

Open PuruVJ opened 7 months ago

PuruVJ commented 7 months ago

Currently we use neodrag:start, neodrag:end and neodrag events. The colon(:) causes issues with Svelte Language tools, and maybe in other environments as well.

From v3, rename these to neodrag_start, neodrag_end.

Why not camelcase(neodragStart)? Because most people who'll be listening to these events are the svelte folks(onneodragstart), where events are now lowercase, hence we need to keep it readable, or the plain js users, who will have the same issue