- Home /
Touch input reporting 0 delta for first several Updates on iOS,
Hello,
I'm seeing an issue when reading Touch input events on iOS. The first several updates after I start to drag my finger the delta value reported is 0. Then at some point the first delta comes in and its a particularly large value. This shows up as stutter on the screen when starting a pan.
For example the first several touch inputs may give delta values like this: (0, 0), (0, 0), (0, 0), (0, 0), (5, 21), (1, 2), (1, 1), (1, 3)
So it seems the delta values are being accumulated but only reported after some threshold. Any ideas how to prevent this issue?
Currently using Unity 2019.2.17. Testing on iOS 13.5.1.
Thanks ,
Answer by ohunity · Apr 22, 2021 at 04:12 AM
I am also having this issue @jarhead99 did you end up finding a solution? I have a feeling it could be something iOS related.
All the best
Answer by jarhead99 · May 03, 2021 at 05:00 PM
Yeah I suspected that as well but didn't get to the bottom of why it was happening. I ended up adding a little workaround that only starts handling the gesture once the first delta is detected.