Issue with buttons inside Scrollrect on Android

If I put buttons inside a ScrollRect on Android the buttons onclick event doesn’t always fire.

With a mouse it works perfectly, but on some Android devices I have to click several times and hope that the click fires, most of the times it doesn’t. On some devices it works OK (Galaxy S4, Tab3 10.0 and LG L5) but on others it doesn’t (Sony Xperia Z2 and Tab3 7.0). On the Tab3 7.0 it is really bad, I think only 30% of my clicks fire.

As soon as I remove the ScrollRect from the parent it works perfectly again (but I miss the scroll behaviour;). Weird thing is that if I only deactivate the ScrollRect it doesn’t work properly though the ScrollRect isn’t active.

Does anybody have similar experiences and/or knows a solution?

I thought maybe there is a threshold or something on the ScrollRect to intercept the click events, but then I don’t know how to set this?

It’s because of the fixed 1 pixel drag threshold. Your finger moves a bit and the scroll starts, canceling the click. I’ve posted a thread about it ( ScrollRect drag threshold - Unity Engine - Unity Discussions ) and created a bug report. Seems like a simple fix, hopefully they’ll get around to it soon enough.

Thanks for your reply.

I didn’t find your post yet but already had the idea it had something to do with the threshold. Let’s hope for a quick fix then. Making the threshold configurable doesn’t seem a lot of work;)

Hi, we’ll be fixing this, no ETA yet as we want to figure out what the best feeling / most correct solution is.

Hi Tim, Thanks for your reply. Good to know a fix is on the way. Please keep us posted when you have an idea what the ETA will be…

A quick fix can be found at Buttons within scroll rect are difficult to press on mobile - Unity Engine - Unity Discussions