We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b33bb78 commit 1ce57f4Copy full SHA for 1ce57f4
example/src/App.tsx
@@ -34,6 +34,7 @@ export default function App() {
34
mode="parallax"
35
width={width}
36
data={data}
37
+ loop={false}
38
parallaxScrollingScale={0.8}
39
onSnapToItem={(index) => {
40
console.log('current index:', index);
src/Carousel.tsx
@@ -193,8 +193,9 @@ function Carousel<T extends unknown = any>(
193
i = i % 2;
194
break;
195
}
196
- onSnapToItem && runOnJS(onSnapToItem)(i);
197
+
198
+ onSnapToItem && runOnJS(onSnapToItem)(i);
199
},
200
[onSnapToItem, loop, _data]
201
);
0 commit comments