How to bind both Mousedown and Touchstart, but not respond to both? Android, JQuery

后端 未结 9 855
无人及你
无人及你 2020-12-04 14:24

Working on a website that is also viewable on mobile and need to bind an action on both touchstart and mousedown.

Looks like this

 $(\"#roll\").bind         


        
9条回答
  •  借酒劲吻你
    2020-12-04 14:50

    I recommend you try jquery-fast-click. I tried the other approach on this question and others. Each fixed one issue, and introduced another. fast-click worked the first time on Android, ios, desktop, and desktop touch browsers (groan).

提交回复
热议问题