Reorderable icon indicating copy to clipboard operation
Reorderable copied to clipboard

In LazyVerticalGrid, when an item is placed not on top of another item but an empty space where it can be moved, onMove is not called.

Open cmseo opened this issue 1 year ago • 3 comments

In LazyVerticalGrid, when an item is placed not on top of another item but an empty space where it can be moved, onMove is not called. Please check video atttached

Uploading screen-20241115-192129.mp4…

.

below is my data class. data class Item(val id: Int, val text: String, val span: Int)

first, i make item like below. val items = (0..200).map { Item(id = it, text = "#$it", span = (it % 3) + 1) }

make grid like below.

LazyVerticalGrid( columns = GridCells.Fixed(6), modifier = Modifier.fillMaxSize(), state = lazyGridState, contentPadding = PaddingValues(8.dp), verticalArrangement = Arrangement.spacedBy(8.dp), horizontalArrangement = Arrangement.spacedBy(8.dp), ) { list.forEachIndexed { index, item -> item(key = item.id, span = { GridItemSpan(item.span) } ) {

cmseo avatar Nov 15 '24 10:11 cmseo

Can you reupload the video? I can't see it :(

Calvin-LL avatar Nov 15 '24 10:11 Calvin-LL

can you see it?

https://github.com/user-attachments/assets/853a00c1-5be8-412b-a38c-8d6509f75cea

cmseo avatar Nov 15 '24 10:11 cmseo

Hmmm I don't think this can be done with the current architecture. I'll leave this issue open in case someone comes up with something.

Calvin-LL avatar Nov 15 '24 16:11 Calvin-LL