We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RingComponent
wrappedCard
Hi everyone,
I develop a pwa and i meet a problem with the prev and next function from carousel, i have this issue when i call them.
I declare my carousel like that :
const CarouselRef = useRef<any>({ next: () => null, prev: () => null, });
i use prev and next like that :
const snapSelectedMember = () => { if (!selectedMember) return; const index = ordersMembers.findIndex(member => member.id === selectedMember.id) || 0; if(index === -1) return; if (index < currentIndex) { for (let i = index; i <= currentIndex; i++) { CarouselRef.current.prev(); } } else { for (let i = currentIndex; i <= index; i++) { CarouselRef.current.next(); } } setCurrentIndex(index); };
and this is my touch carousel :
ref={CarouselRef} component={CarouselContainer} cardCount={ordersMembers?.length} renderCard={(index: number, modIndex: any, cursor: number, carouselState: any) => RenderCard({ index, modIndex, cursor, carouselState, item: ordersMembers[modIndex], currentIndex, onIndexChange })} defaultCursor={currentIndex} onDragStart={() => setDisableDraging(true)} onDragEnd={() => setDisableDraging(false)} onDragCancel={() => setDisableDraging(false)} loop={false} />
Do you have any idea where come from my issue ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi everyone,
I develop a pwa and i meet a problem with the prev and next function from carousel, i have this issue when i call them.
I declare my carousel like that :
i use prev and next like that :
and this is my touch carousel :
Do you have any idea where come from my issue ?
The text was updated successfully, but these errors were encountered: