vue-responsive-grid-layout icon indicating copy to clipboard operation
vue-responsive-grid-layout copied to clipboard

Unexpected Behavior with Horizontal Shift

Open TonyYanOnFire opened this issue 2 years ago • 1 comments

Hey Geirr,

I've created a layout to evaluate the horizontal shift feature in vue-ts-responsive-grid-layout. My expectation was straightforward: when I move item5 all the way to the left, it should first swap places with item4 and then with item3, ultimately resulting in an order of item5-item3-item4 from left to right. However, what I observed was that when item5 and item4 collided, item4 got pushed down to next row and didn't revert back to its original position. This behavior seems a bit off to me.

On the other hand, when I tested by dragging item1 and item9 to the far left, everything worked as anticipated.

TonyYanOnFire avatar Oct 30 '23 06:10 TonyYanOnFire

@TonyYanOnFire Can you please apply a codesandbox so i can test this.

Rgds

Geirr

gwinnem avatar Feb 06 '24 15:02 gwinnem