Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 18, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
sh.calvin.reorderable:reorderable 2.5.1 -> 3.0.0 age confidence

Release Notes

Calvin-LL/Reorderable (sh.calvin.reorderable:reorderable)

v3.0.0

Thank you @​vipulm7 for PR #​95

BREAKING CHANGES

ReorderableItem now required in ReorderableColumn and ReorderableRow

needed this to solve #​94

ReorderableColumn(
    list = list,
    onSettle = { fromIndex, toIndex ->
        // Update the list
    },
) { index, item, isDragging ->
    key(item.id) {
        // !!! NEW !!!
        ReorderableItem {
            // Item content

            IconButton(modifier = Modifier.draggableHandle(), /* ... */)
        }
    }
}

New default auto scroll item move behavior in grids

onMove is now called with the item below the dragging item instead of the last visible item when auto scrolling.

To revert to the old behavior, pass scrollMoveMode = ScrollMoveMode.INSERT to rememberReorderableLazy*GridState

For onMove to work as the video below,

change

list = list.toMutableList().apply {
    add(to.index, removeAt(from.index))
}

to

list = list.toMutableList().apply {
    this[to.index] = this[from.index].also {
        this[from.index] = this[to.index]
    }
}
NEW old
A video showing an item being reordered in a LazyGrid with ScrollMoveMode.INSERT A video showing an item being reordered in a LazyGrid with ScrollMoveMode.SWAP

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency sh.calvin.reorderable:reorderable to v3 Update dependency sh.calvin.reorderable:reorderable to v3 - autoclosed Sep 20, 2025
@renovate renovate bot closed this Sep 20, 2025
@renovate renovate bot deleted the renovate/sh.calvin.reorderable-reorderable-3.x branch September 20, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants