Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

PointerEventData.clickCount always returning 1 on iOS

$
0
0
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...

PointerEventData.clickCount always returning 1 on iOS

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>