From 900e569ef26e7b6786cda1f05e5ca3688d65b1c3 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 28 Oct 2025 18:52:31 +0200 Subject: [PATCH] Override Reduce Motion on load-bearing animation (#9294) --- src/view/com/lightbox/ImageViewing/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/view/com/lightbox/ImageViewing/index.tsx b/src/view/com/lightbox/ImageViewing/index.tsx index bb3c39f594..0eed03f6d3 100644 --- a/src/view/com/lightbox/ImageViewing/index.tsx +++ b/src/view/com/lightbox/ImageViewing/index.tsx @@ -18,6 +18,7 @@ import Animated, { cancelAnimation, interpolate, measure, + ReduceMotion, runOnJS, type SharedValue, useAnimatedReaction, @@ -516,6 +517,7 @@ function LightboxImage({ velocity: e.velocityY, velocityFactor: Math.max(3500 / Math.abs(e.velocityY), 1), // Speed up if it's too slow. deceleration: 1, // Danger! This relies on the reaction below stopping it. + reduceMotion: ReduceMotion.Never, // If this animation doesn't run, the image gets stuck - therefore override Reduce Motion }) }) } else { @@ -524,6 +526,7 @@ function LightboxImage({ return withSpring(0, { stiffness: 700, damping: 50, + reduceMotion: ReduceMotion.Never, }) }) }