I've been attempting to use the Pointer<Up> and Pointer<Down> events to handle touches on a mobile mancala game.
With the mouse, click events are working fine, but with touch input, I have to wait about 1 second for the Pointer<Up> event to be registered properly.
I've been attempting to use the
Pointer<Up>
andPointer<Down>
events to handle touches on a mobile mancala game.With the mouse, click events are working fine, but with touch input, I have to wait about 1 second for the
Pointer<Up>
event to be registered properly.Here is the code I'm attempting to use.
I can see the
Pointer<Down>
pretty much every time, but if I let go too early, I get the following error:Unable to get location for pointer Touch(0)
Clearly this is happening in pointer_events. But how can I ensure that the
PointerLocation
gets updated properly before the second is up?