From 220e989f3dfa121eee42457af37ae70bbc1ff02e Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 28 Jan 2026 00:57:49 +0200 Subject: [PATCH] improve lightbox smoothness (#9200) --- 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 ebc18c69ce..534c73b3df 100644 --- a/src/view/com/lightbox/ImageViewing/index.tsx +++ b/src/view/com/lightbox/ImageViewing/index.tsx @@ -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 {