IPointerClickHandler not registering clickCount > 1 on iOS

Greetings,

Using the old input system and IPointerClickHandler when double-clicking an object clickCount is still always 1 when running on iOS.

The same game on Windows will show 2 allowing me to treat it as a double-click:

    public void OnPointerClick(PointerEventData eventData)
    {
        Debug.Log($"OnPointerClick(): InstanceID={gameObject.GetInstanceID()}, clickCount={eventData.clickCount}), clickTime={eventData.clickTime}, dragging={eventData.dragging}");
        if (!IsPlaying || !CanDrag) return;
        if (eventData.clickCount > 1)
        {
            DoubleClicked(_cardUI);
        }
    }

Is this a bug or am I missing a setting or something?

Unity version 2021.3.23f1.
8971231--1233361--upload_2023-4-24_19-49-20.png

Looks like a known bug:
PointerEventData.clickCount always returning 1 on iOS - Unity Forum

I “hacked” around this by handling the clickCount manually.

I have the same problem, and also had to write a workaround.

The bug I could find in IssueTracker is this , which is marked as Fixed in 4.6.x.

I’ll open a new bug when I have some time :slight_smile: