From 18aaa19b97dfb6af72fcd669de325b6df118c6c0 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 15 Nov 2024 17:32:25 +0000 Subject: [PATCH] [Lightbox] Make the animation faster (#6382) * [Lightbox] Make the animation faster * Make it faster on Android too --- src/view/com/lightbox/ImageViewing/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/com/lightbox/ImageViewing/index.tsx b/src/view/com/lightbox/ImageViewing/index.tsx index 37a9aa1400..68857f62da 100644 --- a/src/view/com/lightbox/ImageViewing/index.tsx +++ b/src/view/com/lightbox/ImageViewing/index.tsx @@ -64,13 +64,13 @@ const EDGES = : (['left', 'right'] satisfies Edge[]) // iOS, so no top/bottom safe area const SLOW_SPRING: WithSpringConfig = { - mass: isIOS ? 1.5 : 1, + mass: isIOS ? 1.25 : 0.75, damping: 300, stiffness: 800, restDisplacementThreshold: 0.01, } const FAST_SPRING: WithSpringConfig = { - mass: isIOS ? 1.5 : 1, + mass: isIOS ? 1.25 : 0.75, damping: 150, stiffness: 900, restDisplacementThreshold: 0.01,