IPointerClickHandler on mobile not working?

I have problem with IPointerClickHandler, everything works fine in editor, but on android device,
eventData.clickCount value always return 1.

Am I do wrong? Or there is different with mobile device?

public class AvailableObj : MonoBehaviour, IPointerClickHandler {

	public void OnPointerClick(PointerEventData eventData){
		int tapCount;
		tapCount = eventData.clickCount;
		if (tapCount == 2){
             //do something
		}
	}
}
1 Like

I solve this problem, i handle with eventData.clickTime

public void OnPointerClick(PointerEventData eventData){
	float currentTimeClick = eventData.clickTime;
	if(Mathf.Abs(currentTimeClick - lastTimeClick) < 0.75f){
            //do something
	}
	lastTimeClick = currentTimeClick;
}