Buttons at Phonegap. Why the click is slow?

Hi folks,

I’m playing with Phonegap framework and I figure out an issue with the button. The click event does not works properly in mobile devices, they are quite slower, at least, in iOS and Android. Here is an example of code that does not works properly:

<button onclick=’handle();’ …/>

Following other posts I fixed the bug with the following code (using jquery):

$(“#myButton” ).on(‘touchstart’, handle);

The main conclusion is: if you’re developing HTML for mobile applications you need to bother about what are proper events to bind.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s