diff options
author | dan <dan.abramov@gmail.com> | 2024-11-15 17:32:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 17:32:25 +0000 |
commit | 18aaa19b97dfb6af72fcd669de325b6df118c6c0 (patch) | |
tree | b37ab2756cc26cc8c49d58ae2573bc690df67bdf /src/view/com/lightbox/ImageViewing/index.tsx | |
parent | 05312cce33006a11b7f000f84f94dc58b25e165d (diff) | |
download | voidsky-18aaa19b97dfb6af72fcd669de325b6df118c6c0.tar.zst |
[Lightbox] Make the animation faster (#6382)
* [Lightbox] Make the animation faster * Make it faster on Android too
Diffstat (limited to 'src/view/com/lightbox/ImageViewing/index.tsx')
-rw-r--r-- | src/view/com/lightbox/ImageViewing/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/lightbox/ImageViewing/index.tsx b/src/view/com/lightbox/ImageViewing/index.tsx index 37a9aa140..68857f62d 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, |