From 9233a22de95d0f56821ab7c6a293e1ce4c8b0e4e Mon Sep 17 00:00:00 2001 From: quirkyfiesta-glitch Date: Fri, 6 Nov 2026 11:28:13 +0530 Subject: [PATCH 1/2] fix(player): prevent chapter pill shifting when controls appear --- .../xyz/mpv/rex/ui/player/controls/PlayerControls.kt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt b/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt index 1969f5135..56aa195f2 100644 --- a/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt +++ b/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt @@ -1627,18 +1627,12 @@ fun PlayerControls( visible = controlsShown && !areControlsLocked, enter = if (!reduceMotion) { - slideInHorizontally( - animationSpec = tween( + fadeIn( + tween( durationMillis = 180, easing = LinearOutSlowInEasing, ), - ) { it / 3 } + - fadeIn( - tween( - durationMillis = 180, - easing = LinearOutSlowInEasing, - ), - ) + ) } else { fadeIn(playerControlsEnterAnimationSpec()) }, From 88f88d775f0bd79fbbc1404d692928fcd5e6d4be Mon Sep 17 00:00:00 2001 From: quirkyfiesta-glitch Date: Fri, 6 Nov 2026 11:45:01 +0530 Subject: [PATCH 2/2] restore-animation --- .../mpv/rex/ui/player/controls/PlayerControls.kt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt b/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt index 56aa195f2..5c95499dc 100644 --- a/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt +++ b/app/src/main/kotlin/xyz/mpv/rex/ui/player/controls/PlayerControls.kt @@ -1626,16 +1626,12 @@ fun PlayerControls( AnimatedVisibility( visible = controlsShown && !areControlsLocked, enter = - if (!reduceMotion) { - fadeIn( - tween( - durationMillis = 180, - easing = LinearOutSlowInEasing, - ), - ) - } else { + if (!reduceMotion) { + slideInHorizontally(playerControlsEnterAnimationSpec()) { it } + + fadeIn(playerControlsEnterAnimationSpec()) + } else { fadeIn(playerControlsEnterAnimationSpec()) - }, + }, exit = if (!reduceMotion) { slideOutHorizontally(playerControlsExitAnimationSpec()) { it } +