[Help]: How to tracking Drag Events in embla-carousel-react #1076
Unanswered
volunteer1024
asked this question in
Help
Replies: 2 comments 2 replies
-
I'm trying to implement the same 😬 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @volunteer1024 and @ineshbose, could you take a look at this example? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Summary
Description:
I am using embla-carousel-react to create a carousel component, where each child element is an image. Users can drag image or click on the left/right arrows to slide. I am now trying to track the number of times users drag images, but I am finding it difficult to listen for the onDrag event on the child components. I have attempted the following approaches without success:
Question:
Is there a recommended way to effectively track drag events in embla-carousel-react? Any guidance or suggestions would be greatly appreciated!
If applicable, which variants of Embla Carousel are relevant to this question?
Additional information
No response
CodeSandbox example
https://codesandbox.io/p/sandbox/embla-carousel-default-react-forked-4tj833
Beta Was this translation helpful? Give feedback.
All reactions