Ondrej Tokar
Ondrej Tokar

Reputation: 5070

Unity button doesn't behave as it was clicked after a click and drag

There is a simple button in our application which when is pressed works just as expected, but with a light quick touch it just greys out and does nothing.

Is there a way to capture those light touches too?

EDIT: I see now when exactly it doesn't work and it is when I tap, drag and release. (even if I tap, drag and don't leave the button area)

Upvotes: 0

Views: 565

Answers (1)

Paul-Jan
Paul-Jan

Reputation: 17278

Try setting EventSystem.pixelDragThreshold to a higher value. This threshold makes the difference between a click and a drag, and it's default value is quite low for high-res touch systems.

Upvotes: 1

Related Questions