Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

PointerEventData.clickCount always returning 1 on iOS

Discussion in 'UGUI & TextMesh Pro' started by GameDesignerBen, Jan 25, 2016.

  1. GameDesignerBen

    GameDesignerBen

    Joined:
    Jul 13, 2013
    Posts:
    2
    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
     
  2. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,683
    Sounds like a bug, I'd just log it using the unity bug reporter in the editor.
     
  3. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @GameDesignerBen

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

    michaeleconomy

    Joined:
    Aug 28, 2018
    Posts:
    58
    This is still broken. Reported in
    Case 1254129
     
  5. Yiming075

    Yiming075

    Joined:
    Mar 24, 2017
    Posts:
    29
    Sadly it haven't fixed
     
  6. MidniteOil

    MidniteOil

    Joined:
    Sep 25, 2019
    Posts:
    340
    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.