"TouchLongPress" firing multiple times when moving the camera

The title explains it pretty much.

Not sure if this was implemented like this, But when using the “TouchLongPress” event for Mobile devices, when pressing for too long the event fires like how it’s supposed to be, But when moving the camera around, The event keeps firing each camera movement.

Watch the output, each time the event fires it prints out a random number from 1 to 999…


(link in case gif didn’t load: Imgur)

I’m new to mobile development so excuse me if I get something wrong here lol

1 Like

Try adding a latch/denounce to the touch long press. Unlatch the function once the user picks their finger up. This should only allow it to run once.

2 Likes

Thanks for the help, why didn’t I think of that.

1 Like