From 4d8cdc46815d5d8720067805d6d5ed1c0b152fbd Mon Sep 17 00:00:00 2001 From: Stypox Date: Tue, 6 Jan 2026 17:47:31 +0100 Subject: [PATCH] Fix strange animations when quickly reording items --- .../newpipe/ui/components/menu/LongPressMenuEditor.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenuEditor.kt b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenuEditor.kt index bfa9a7248..0e758eb1a 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenuEditor.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenuEditor.kt @@ -427,7 +427,12 @@ fun LongPressMenuEditor(modifier: Modifier = Modifier) { ItemInListUi( item = item, selected = currentlyFocusedItem == i, - modifier = Modifier.animateItem() + // We only want placement animations: fade in/out animations interfere with + // items being replaced by a drag marker while being dragged around, and a fade + // in/out animation there does not make sense as the item was just "picked up". + // Furthermore there are strange moving animation artifacts when moving and + // releasing items quickly before their fade-out animation finishes. + modifier = Modifier.animateItem(fadeInSpec = null, fadeOutSpec = null) ) } }