Knowledge-Base
Knowledge-Base copied to clipboard
JS 区分鼠标和触摸板
解决过程
先是 Google js if touchpad,在 Detect touchpad vs mouse in Javascript 这篇文章中提供了好几种判断方法,后面需要挨个测试一下。
同时还用中文进行了搜索:JS 滚动 区分 鼠标 触摸板,下面几篇文章都有参考价值,后面可以看看: