From e1b8d25dbaf3b9f4c6c7890be3c90740798567a1 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Wed, 1 Apr 2026 13:25:32 -0400 Subject: [PATCH] smooth scrolling --- src/components/images/Gallery/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/images/Gallery/index.tsx b/src/components/images/Gallery/index.tsx index fffa1fe9c1..f9fec8f01b 100644 --- a/src/components/images/Gallery/index.tsx +++ b/src/components/images/Gallery/index.tsx @@ -134,9 +134,9 @@ export function Gallery({ horizontal pagingEnabled={false} showsHorizontalScrollIndicator={false} - snapToInterval={snapInterval} - snapToAlignment="start" - decelerationRate="fast" + snapToOffsets={images.map((_, i) => i * snapInterval)} + decelerationRate="normal" + disableIntervalMomentum contentContainerStyle={{gap: ITEM_GAP}} onScroll={e => { const offsetX = e.nativeEvent.contentOffset.x