摘要: 使用Apple Pencil时,touchstart上的force总是非零的。 对于常规触摸,进行简单判断,pressure = 1.0。在Safari和WKWebView有用。 ``` let pressure = 0.0; // 监听触摸事件 if (typeof(e.touches[0]["f 阅读全文
posted @ 2023-08-28 13:02 新房客 阅读(55) 评论(0) 推荐(0) 编辑