cuire / svelte-grid-extended

A draggable and resizable grid layout, for Svelte
https://svelte-grid-extended.vercel.app
MIT License
74 stars 8 forks source link

[Feature] Add option for collision being done after drop/release from move/resize and not during #58

Open nixigaj opened 8 months ago

nixigaj commented 8 months ago

Maybe you could have a preview during move/resize of how items will be rearranged after drop/release but if the pane is then dropped/released back at its original position or the escape key is pressed during drag, it restores the original arrangement.

ihsanmohamad commented 5 months ago

nice, i was also hoping to have other events such as onDragStop and onDragStart etc. Great library, i'm having a good result from it.

cuire commented 5 months ago

nice, i was also hoping to have other events such as onDragStop and onDragStart etc. Great library, i'm having a good result from it.

Good idea, can you create separate issue for it

cuire commented 5 months ago

My idea is to create a currentInteraction abstraction. Then it can be accessed using gridController,

ihsanmohamad commented 5 months ago

My idea is to create a currentInteraction abstraction. Then it can be accessed using gridController,

ohh that would be great too!