diff --git a/src/Pager.tsx b/src/Pager.tsx index baabed7a..fff36d53 100644 --- a/src/Pager.tsx +++ b/src/Pager.tsx @@ -117,6 +117,7 @@ export default function Pager({ } if (layout.width && currentIndexRef.current !== index) { + currentIndexRef.current = index; jumpToIndex(index); } }, [jumpToIndex, keyboardDismissMode, layout.width, index]);