Disables delete draft from swipe from right to left. Only left to right remains available.

This commit is contained in:
Vitor Pamplona 2024-12-27 18:25:24 -05:00
parent 1c52887e3a
commit 7fe02fcf2c
2 changed files with 1 additions and 2 deletions

View File

@ -84,7 +84,6 @@ fun SwipeToDeleteContainer(
)
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun DismissBackground(dismissState: SwipeToDismissBoxState) {
val color by animateColorAsState(

View File

@ -210,7 +210,7 @@ private fun DraftFeedLoaded(
.fillMaxWidth()
.animateContentSize(),
onStartToEnd = { accountViewModel.delete(item) },
onEndToStart = { accountViewModel.delete(item) },
onEndToStart = { },
) {
NoteCompose(
item,