improve lightbox smoothness

This commit is contained in:
Samuel Newman
2025-10-14 13:53:38 +01:00
parent d2bc22e9be
commit b210fe868e
+2 -2
View File
@@ -61,13 +61,13 @@ const SLOW_SPRING: WithSpringConfig = {
mass: isIOS ? 1.25 : 0.75,
damping: 300,
stiffness: 800,
restDisplacementThreshold: 0.01,
restDisplacementThreshold: 0.001,
}
const FAST_SPRING: WithSpringConfig = {
mass: isIOS ? 1.25 : 0.75,
damping: 150,
stiffness: 900,
restDisplacementThreshold: 0.01,
restDisplacementThreshold: 0.001,
}
function canAnimate(lightbox: Lightbox): boolean {