question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scrollTo's scroll direction is inconsistent

See original GitHub issue

what I tried

Applying embla.scrollTo(1) to the carousel having only two slides. (and loop: true)

codesandbox demo

what I expected

New slide should appear from the right side.

what I got

New slide appears from the left side only the first time. This doesn’t occur with more than 3 elements.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kb8228commented, Nov 3, 2021

@davidcetinkaya that’s exactly what I was trying to achieve, thanks so much!

1reaction
PurviJhacommented, Feb 10, 2022

thanks for the information @davidcetinkaya

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found