We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4fe70 commit 793bd6fCopy full SHA for 793bd6f
1 file changed
app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenuEditor.kt
@@ -427,7 +427,12 @@ fun LongPressMenuEditor(modifier: Modifier = Modifier) {
427
ItemInListUi(
428
item = item,
429
selected = currentlyFocusedItem == i,
430
- modifier = Modifier.animateItem()
+ // We only want placement animations: fade in/out animations interfere with
431
+ // items being replaced by a drag marker while being dragged around, and a fade
432
+ // in/out animation there does not make sense as the item was just "picked up".
433
+ // Furthermore there are strange moving animation artifacts when moving and
434
+ // releasing items quickly before their fade-out animation finishes.
435
+ modifier = Modifier.animateItem(fadeInSpec = null, fadeOutSpec = null)
436
)
437
}
438
0 commit comments