aclassen / ComposeReorderable

Enables reordering by drag and drop in Jetpack Compose (Desktop) LazyList & LazyGrid.
Apache License 2.0
821 stars 86 forks source link

I can move locked items #260

Open wow64cpu opened 1 year ago

wow64cpu commented 1 year ago

I can move locked grid items.

If you move the elements that are before the blocked element behind it, then the blocked element moves to the beginning of the grid.

If you move elements after a blocked element in front of it, then the blocked element moves to the end of the grid.

Thus, I can move the blocked element to the beginning or end, and only after that I will not be able to move it anywhere.

Perhaps similar behavior will be in lists.

This problem is reproduced by the example code.

grid_reorder-2023-04-27_18 04 47_sm

In addition, there is another strange observation.

Apparently, I can literally drag a blocked element if I start to do so from the near edge of an adjacent element. This also works on regular elements, i.e. I click on one element, and the adjacent element is dragged.

grid_reorder_1-2023-04-27_18 39 20

happysingh23828 commented 6 months ago

Facing the same, did you find any solution? @wow64cpu