Replies: 2 comments 1 reply
-
Hi @harshbaz, Assuming that you’re using the latest version which is emblaApi.on('select', (emblaApi) => {
const direction = emblaApi.internalEngine().scrollBody.direction()
console.log(direction)
}) Please note:
If you want to track every time the user scrolls the carousel regardless if the active scroll snap change or not, I would recommend you to track the direction with this snippet: const direction = emblaApi.internalEngine().scrollBody.direction() …on the Let me know if it helps. Best, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Closing because of lack of interest. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to keep track of the scroll count. Is there any way to do it? The current settle event takes a while to fire (as mentioned in the docs) and skips firing entirely if users swipes to the next slide quickly.
Is there any "change" event which can be used to determine the direction of swipe and the slide change action?
Beta Was this translation helpful? Give feedback.
All reactions