PointerEventData.clickCount always returning 1 on iOS

Seems like a bug, but I could also see this as being intentional, so I wanted to ask.

I have a class that implements IPointerClickHandler. In the OnPointerClick method, I’m doing some simple double-click detection by testing the value of PointerEventData.clickCount. This works just fine on OSX with a mouse, but when I run my game on iOS, my debug info is showing me that clickCount is always returning 1, no matter how rapidly I tap.

I can write my own double-tap timing code for mobile, but it seemed like a waste to not be able to reuse what was already there. Is this indeed a bug?

Unity 5.3.1f1 on OSX

Sounds like a bug, I’d just log it using the unity bug reporter in the editor.

@GameDesignerBen

Hi, how about testing the same with Touch.tapCount, do you get the same result?

This is still broken. Reported in
Case 1254129

Sadly it haven’t fixed

Surprising this hasn’t been addressed. Seems like low-hanging fruit to me. The kind of bug you give a new dev to get them familiar with the code base.

Sadly, it havent fixed yet. 2024.10.28
I hate unity.