Preventing OnClick() event if OnLongPress() event occured

I have a Unity UI button , with an OnClick() event , and i have added a custom event for LongPress. But the problem is after the longpress is triggered, when i take finger, the on click event is also called. So , how can we prevent onclick event if longpress occured.

Thanks in advance

2179608--144448--Screen Shot 2015-06-28 at 6.27.14 pm.png

It seems to be the easiest way to have LongPress and maybe Tap, where tap is just a click that is shorter than a long press. Like that you don’t need OnClick anymore and you have a solid solution.

thanks dantus
i have a lot of button already mapped with onclick() , the tap is added by another script. So i was looking for a solution to keep onclick like that and get longpress