tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 4781b16c4b2401227a947051c9ae3345e4bf71f1
parent a7a098a77b3eeab64d88d8b0cc5ca5598aed8cef
Author: Cathy Lu <calu@mozilla.com>
Date:   Thu, 13 Nov 2025 15:58:07 +0000

Bug 1999207 - Adjust tab manager thumbnail animation to half the duration r=android-reviewers,007

Differential Revision: https://phabricator.services.mozilla.com/D272059

Diffstat:
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/tabstray/ui/OpeningAnimation.kt | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tabstray/ui/OpeningAnimation.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/tabstray/ui/OpeningAnimation.kt @@ -46,10 +46,10 @@ import mozilla.components.browser.state.state.TabSessionState import org.mozilla.fenix.compose.TabThumbnail import kotlin.math.min -private const val SHARED_ELEMENT_DURATION = 300 +private const val SHARED_ELEMENT_DURATION = 200 private const val SHARED_ELEMENT_DELAY = 25 -private const val DURATION_ENTER = 400 -private const val DURATION_EXIT = 200 +private const val DURATION_ENTER = 200 +private const val DURATION_EXIT = 50 // These were largely inspired by the M3 animation docs // https://m3.material.io/styles/motion/easing-and-duration/tokens-specs#cbea5c6e-7b0d-47a0-98c3-767080a38d95 @@ -104,7 +104,7 @@ private val TabManagerTransitionSpec: TabManagerAnimationTransitionScope.() -> C tween( durationMillis = DURATION_ENTER, easing = EmphasizedDecelerateEasing, - delayMillis = SHARED_ELEMENT_DELAY + 50, + delayMillis = SHARED_ELEMENT_DELAY, ), ) togetherWith scaleOut( // Thumbnail exit spec tween(