smooth scrolling

This commit is contained in:
vineyardbovines
2026-04-01 13:25:32 -04:00
parent eb516cddab
commit e1b8d25dba
+3 -3
View File
@@ -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