improve lightbox smoothness (#9200)

This commit is contained in:
Samuel Newman
2026-01-28 00:57:49 +02:00
committed by GitHub
parent 39e7132fd8
commit 220e989f3d
+2 -2
View File
@@ -62,13 +62,13 @@ const SLOW_SPRING: WithSpringConfig = {
mass: IS_IOS ? 1.25 : 0.75,
damping: 300,
stiffness: 800,
restDisplacementThreshold: 0.01,
restDisplacementThreshold: 0.001,
}
const FAST_SPRING: WithSpringConfig = {
mass: IS_IOS ? 1.25 : 0.75,
damping: 150,
stiffness: 900,
restDisplacementThreshold: 0.01,
restDisplacementThreshold: 0.001,
}
function canAnimate(lightbox: Lightbox): boolean {