How to use FastClick with jQuery Mobile the right way?

前端 未结 1 945
攒了一身酷
攒了一身酷 2021-01-03 05:16

i would like to use FastClick in an Application for iOS. I downloaded the fastclick and included it into my header which looks like:



        
相关标签:
1条回答
  • 2021-01-03 05:26

    You don't need to use 3rd party plugins like Fastclick.

    jQuery Mobile has already solved this problem with vclick event. It works on desktop and mobile devices and don't have 300ms delay.

    Read my other answer if you want to find out more.

    $(document).on('vclick', '#someButton', function(){ 
    
    });
    
    0 讨论(0)
提交回复
热议问题