Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Prevent Click Event ( from firing when user clicks image and drags


Level 2

Hi all, so i'm experiencing something, I want to track click on my anchor elements, however, we have a carousel and when a user clicks and swipes/drags to the next carousel item, a click( is fired. how can i prevent it from firing when a user is dragging/sliding through the images and only capture/fire the click( when the user clicks it vs. sliding through?

3 Replies


Level 10
Do you have a URL where we can see the page?


Community Advisor

Edward, it's likely that your tracking implementation is mapped to the event that triggers in both cases (click and drag/slide). If you find a way how to differentiate these two event types and link the tracking to the click event, then it will allow to get the desired result.