Problem with taphold and click on same element

Problem with taphold and click on same element

I need a click event on a 'A' element buttonified to do one thing

But if the user longpress (taphold) the same A, another thing must happens.

The problem is that after taphold is triggered, and user leave the finger, the click event is fired.

I tryied event.stopImmediatePropagation() but without luck.

How to resolve this ?