Repository navigation
[General]: Why is "auto scroll" overwriting the core "scrollBody" of Embla ? #1320
benjaminrobinet
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
I was wondering why it felt so weird to have auto scroll waiting for embla to be "settled" before starting again after a drag. So I ended up taking a look at the code. I saw that is overrides the actual scrollBody of embla, to use a custom one.
I am now wondering why not just overwriting only the
seekof the default scrollBody like so:It might have some reasons I have not thought about, but I'm happy to discuss it.
If applicable, which variants of Embla Carousel are relevant to this conversation?
Additional information
No response
CodeSandbox example
No response
All reactions