How to check browser for touchstart support using JS/jQuery?

前端 未结 4 1300
一生所求
一生所求 2020-11-28 05:12

In an attempt to follow best practices, we\'re trying to use the proper JavaScript/jQuery events according to what device you are using. For example, we\'re building a mobil

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 05:48

    I made a full demostration that works in every browser with the full source code of the solution of this problem: Detect touch screen devices in Javascript.

提交回复
热议问题