Prevent Click Event (s.tl) from firing when user clicks image and drags | Community
Skip to main content
Level 3
April 15, 2020
Solved

Prevent Click Event (s.tl) from firing when user clicks image and drags

  • April 15, 2020
  • 3 replies
  • 4941 views

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(s.tl) is fired. how can i prevent it from firing when a user is dragging/sliding through the images and only capture/fire the click(s.tl) when the user clicks it vs. sliding through?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrey_Osadchuk

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.

3 replies

jantzen_b
Adobe Employee
Adobe Employee
April 16, 2020
Do you have a URL where we can see the page?
EdwardBu3Author
Level 3
April 16, 2020
sent you a message with the URL. thanks
Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
April 16, 2020

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.