avoid multiple clicks on buttons

30 views
Skip to first unread message

redcl...@gmail.com

unread,
Feb 28, 2013, 6:07:21 AM2/28/13
to chocolat...@googlegroups.com
Hi! There's a way to avoid multiple clicks on buttons? Usually, if I click on a button to navigate to next view, there's a sort of latency before the action is actually performed. Meanwhile I can click again several times on same button causing some inconsistencies. Any suggestion?

er...@craftti.com.br

unread,
Feb 28, 2013, 11:25:05 AM2/28/13
to chocolat...@googlegroups.com
Hi,

In order to improve the response time of buttons in web mobile applications you need to listen to events like touchstart or touchend instead of click or tap. Click and Tap has a 300ms delay that causes this "sense" of lateness.

Just be carefull when you use touchstart/touchend in elements order than buttons because you may end-up messing other UI behavior (for example, in list elements, disclosure icons, etc..)

Cheers,

Eric

redcl...@gmail.com

unread,
Feb 28, 2013, 11:46:42 AM2/28/13
to chocolat...@googlegroups.com
You saved my day! Thank you!

er...@craftti.com.br

unread,
Feb 28, 2013, 12:17:34 PM2/28/13
to chocolat...@googlegroups.com
You're welcome. ;)
Reply all
Reply to author
Forward
0 new messages