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 45e6cc5 commit 60ca41aCopy full SHA for 60ca41a
src/index.tsx
@@ -293,6 +293,9 @@ function InfinitePager(
293
}, [curIndex, maxIndex]);
294
295
const isAtEdge = isMinIndex || isMaxIndex;
296
+ const isAtEdgeAnim = useDerivedValue(() => {
297
+ return isAtEdge;
298
+ }, [isAtEdge]);
299
300
const initTouchX = useSharedValue(0);
301
const initTouchY = useSharedValue(0);
@@ -313,7 +316,7 @@ function InfinitePager(
313
316
panGesture
314
317
.onBegin((evt) => {
315
318
"worklet";
- if (!isAtEdge) {
319
+ if (!isAtEdgeAnim.value) {
320
const updated = activePagers.value.slice();
321
updated.push(pagerId);
322
activePagers.value = updated;
0 commit comments