1

I've scoured the internet for this answer and been unsuccessful.

Mobile devices are by default slower using the 'click' event because it continues to listen for other types of gestures, such as the double click, scroll, click and hold, etc. Hence, jquery mobile is slow and unresponsive when trying to expand a collapsible list using 'Click'. It delays about .5 second before triggering.

What is the easiest way that I can unbind 'Click' events from these elements and bind the 'tap' event to perform the SAME action?

My plan is to detect if the device is mobile, and if yes, then add the Tap event and thus making the site more responsive.

THANKS!

Greg Yung
  • 103
  • 6
  • Need to see code to know how, and to what, the click events are attached. – Beetroot-Beetroot May 09 '12 at 23:50
  • 1
    Forget that. I think [this](http://stackoverflow.com/questions/6235794/jquery-mobile-for-every-live-tap-event-should-there-be-an-equivalent-click-even) should help you. – Beetroot-Beetroot May 09 '12 at 23:54
  • Thanks Beetroot. Unforuntaly, jquery.mobile.vmouse.js did not work in my project and received a 'Define is not Defined' error. After messing around with it for a time, I decided to scrap it and do a simple fix. I added a Tap event to give instant feedback to the user (changed font color), and allowed the click event to take its lag time and execute afterward - making it appear intentional. I don't like the implementation but it does the trick for the meantime. – Greg Yung May 10 '12 at 18:18
  • That's a pity, vmouse.js looked v.promising. – Beetroot-Beetroot May 11 '12 at 00:20

0 Answers0