[Help]: How do I add navigation buttons? #1186
-
SummaryHello 👋 Similar to #868, I would like some assistance with how to create nav buttons/dots using Svelte 5. I'm currently not able to get keyboard navigation working, on top of getting vague errors like this: ![]() I've created a repro here, though, it's not reliable as it's not consistent. The actual folder is this, and the file is this. Thank you. Cc: @ItsTerm1n4l @davidjerleke If applicable, which variants of Embla Carousel are relevant to this question?
Additional informationNo response CodeSandbox example |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@shyakadavis The Svelte 5 playground from the work-in-progress Embla v9 is all I have at the moment—still, it might be of some help. Just keep in mind that anything named |
Beta Was this translation helpful? Give feedback.
I was literally in the middle of updating the discussion description and title. 😅
I found that the issue for me was that in my
_scrollTo()
function I was passingscrollSnaps
values instead of the index. 🤦♂️