Skip to content
Discussion options

You must be logged in to vote

defaultInteraction: false only changes what the Auto Scroll plugin does on interaction. It does not make Embla's normal drag interaction invisible to the carousel.

In the Auto Scroll source, defaultInteraction: true maps interaction events to onDefaultInteraction(), which stops on pointerdown / slidefocus. With defaultInteraction: false, the plugin uses onCustomInteraction() instead. That custom handler only records isPointerDown / isMouseOver and emits autoscroll:interaction; it does not automatically call play() again after the drag.

So if you want auto-scroll to continue after a drag, you need to restart it yourself after the drag settles, for example by calling the plugin API:

emblaApi.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davidjerleke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something
2 participants