cuire / svelte-grid-extended

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

[Bug] collision true. Can't move element to some coordinates #30

Closed fabiot21 closed 1 year ago

fabiot21 commented 1 year ago

When collision is active, when trying to move an element it can only be moved to certain spaces not everywhere.

Reproduction: Can't drag on this repl element "0" down (y axis). Only works if collision is false.

Screenshot 2023-07-11 at 15 23 58
hearthole commented 1 year ago

It is intended. without the y-axis compression, it's hard to decide where collision target will be moved. plz refer to following change log. https://github.com/cuire/svelte-grid-extended/pull/27#issue-1785173048

cuire commented 1 year ago

Check #32