[Help]: scrollPrev() or goToPrev()? #1283
-
SummaryHello. I'm trying to create Prev and Next buttons for Embla Carousel. In documentation it's creates like 'const goToPrev = () => emblaApi.value?.goToPrev()', but my IDE shows an error: "The "goToPrev" property does not exist in the "EmblaCarouselType" type." When I looked at the source code, I realized that the actual method name is scrollPrev() (not goToPrev()). Am I missing something, or is this a mistake in the documentation? Thank you! If applicable, which variants of Embla Carousel are relevant to this conversation?
Additional informationNo response CodeSandbox exampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
davidjerleke
Feb 14, 2026
Replies: 1 comment 1 reply
-
|
Hi @Kirial-Adin, That’s because of the same reason mentioned here: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davidjerleke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Kirial-Adin,
That’s because of the same reason mentioned here: