I was creating a scroll box with the touch plugin, when I copied and pasted the code to my game. For some reason the scroll box was not working in my game. I eventually worked out that it was the event shown below, as the large project perhaps meant that the touch angle and touch speed where not being stored, instead displaying 0.
Then I realised that the code probably shouldn't work anyway, as when you remove your finger from the screen, then there isn't any touch speed or angle. So I changed the code to that shown below:
This works in my project, the only problem is, it stops working when there is a lot going on. To test this I made another project which has a large array that is looped through every tick. After pasting the code shown above, again the engine returns 0. I'm not sure why this is happening, and would like to prevent it as I don't want my game to stop working on slower devices.
The full code that I tested is shown below: