Nav drawer buttons are often unresponsive

0 votes
asked Jun 3, 2016 in Issue by Pingu
I have a nav drawer with a few buttons. When i click or tap a button wothin the nav drawer it often doesnt fire its click event. I have hooked them up to some custom method, but all that method does is close the nav drawer, change the text held within the app bar and change screen on a screen view. I often tap or click a nav drawer button, see the ripple effect but then nothing else happens. The mav drawer stays open etc. I saw the aame happen when the buttons were hooked up to the default close nav drawer method before i changed it.

1 Answer

0 votes
answered Jun 7, 2016 by admin (31,720 points)
Hum,

Can you please send us a demo project at contact@materialunity.com ?
commented Jun 18, 2016 by Pingu
I lrovided a sample project a while ago now but i just came across more information relating to this. It isnt a problem with nav drawers, its a problem with having buttons inside a scrolling element. I have a screen ehich has a scrolling panel and buttons inside it and unless you press the button really precisely, it wont activate. It will do the ripple but not the onclick. Even if ther scrolling panel is too small the require scrolling. Another place this becomes obvious is within the canvas for dropdowns. Each item there is a button and it scrolls, but if when you tap the button you move your finger so slightly up or down, it will send the drag event to the scroll panel and not perform the buttons onclick. Thisndoesnt work too well on toich devices. Is there a way around this?
commented Jun 21, 2016 by admin (31,720 points)
Hi there,

It seems that Unity's EventSystem component has provided a way to increase the threshold of what counts as a 'drag', which may assist with this issue. Try adjusting the dragThreshold value from 5 to something like 10 and let me know if that helps :)

~ Declan.
Welcome to MaterialUI support! Ask us anything :)
...