Added compress prop (ref #32) and logic to handle if grid should vertical compress or not when collision is active. If collision = true and compress = false then:
Enables free item movement on the grid.
Collision between items leads to relocation of the collided item.
The relocation is to the first available space.
Grid can dynamically expand on the y-axis if no space is available.
Expansion accommodates the relocated item in a new position.
Additionally, a bug has been fixed where the previewItem of items, which had previously collided and been moved, was not updating correctly. This issue occasionally caused certain items to unexpectedly jump to a different position when clicked.
Added compress prop (ref #32) and logic to handle if grid should vertical compress or not when collision is active. If
collision = true
andcompress = false
then:Additionally, a bug has been fixed where the previewItem of items, which had previously collided and been moved, was not updating correctly. This issue occasionally caused certain items to unexpectedly jump to a different position when clicked.