Repository navigation
[Help]: Configurable threshold for settled #738
Which variants of Embla Carousel are relevant to this feature request?
Feature descriptionThanks for all the hard work. This library has been a pleasure to integrate into our ecosystem. The only snag we have hit is related to the delay in the settled state. Attached is a screenshot of our carousel with a duration of 20. As you can see, the time it takes for our disabled state to fade back in is jarring. Despite the micromovements the DOM might be still making, it would help us if we could adjust the threshold at which everything is considered "settled" so we can reenable our slides. Kapture.2024-02-06.at.17.37.09.mp4Additional ContextAdditional details here... Before submitting
|
Answered by
davidjerleke
Feb 8, 2024
Replies: 1 comment 5 replies
|
Hi @richsoni-spotify |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@richsoni-spotify I see. You should be able to do something along these lines:
However, please note that this will fire multiple times as long as
displacementis less thansettlePixelThreshold. You might want to add some sort of check to prevent that.Best,
David