Touch API (e.g. touchstart) not working in MS Edge

前端 未结 3 1074
甜味超标
甜味超标 2020-12-28 18:00

my application is using the Touch API to detect touch events in JavaScript. Example:

$(\".element\").on(\"touchstart\", function(event){
    alert(\"TRUE\");         


        
3条回答
  •  一个人的身影
    2020-12-28 18:15

    Try using the pointerdown event. Some (much) more information. As you can see, touchstart is triggered by Edge but not in all configurations, when a keyboard is attached/paired for example, no touchstart.

提交回复
热议问题