From b210fe868e3f596cdcad1716a863655cdc1c40e3 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 14 Oct 2025 13:53:38 +0100 Subject: [PATCH] improve lightbox smoothness --- 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 bb3c39f594..5eb6641918 100644 --- a/src/view/com/lightbox/ImageViewing/index.tsx +++ b/src/view/com/lightbox/ImageViewing/index.tsx @@ -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 {