Skip to content

[Help]: Swiping fast to skip multiple slides return the next slide #831

Closed Answered by davidjerleke
Kareem987 asked this question in Help
Discussion options

You must be logged in to vote

@Kareem987 you can group slides with the option slidesToScroll:

const [emblaRef] = useEmblaCarousel({ slidesToScroll: 'auto' })

There’s an example with this behavior here in the docs.

Alternatively, if you still want to be able to scroll to individual slides, you can use the option skipSnaps instead:

const [emblaRef] = useEmblaCarousel({ skipSnaps: true })

Best,
David

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kareem987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something
2 participants