[Lightbox] Make the animation faster (#6382)

* [Lightbox] Make the animation faster

* Make it faster on Android too
This commit is contained in:
dan
2024-11-15 17:32:25 +00:00
committed by GitHub
parent 05312cce33
commit 18aaa19b97
+2 -2
View File
@@ -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,