Bluesky app fork with some witchin' additions 💫

Override Reduce Motion on load-bearing animation (#9294)

authored by samuel.fm and committed by

GitHub 900e569e 1883f3fc

+3
+3
src/view/com/lightbox/ImageViewing/index.tsx
··· 18 18 cancelAnimation, 19 19 interpolate, 20 20 measure, 21 + ReduceMotion, 21 22 runOnJS, 22 23 type SharedValue, 23 24 useAnimatedReaction, ··· 516 517 velocity: e.velocityY, 517 518 velocityFactor: Math.max(3500 / Math.abs(e.velocityY), 1), // Speed up if it's too slow. 518 519 deceleration: 1, // Danger! This relies on the reaction below stopping it. 520 + reduceMotion: ReduceMotion.Never, // If this animation doesn't run, the image gets stuck - therefore override Reduce Motion 519 521 }) 520 522 }) 521 523 } else { ··· 524 526 return withSpring(0, { 525 527 stiffness: 700, 526 528 damping: 50, 529 + reduceMotion: ReduceMotion.Never, 527 530 }) 528 531 }) 529 532 }