手指轻触屏幕瞬间即触发,是何原理?
- 内容介绍
- 文章标签
- 相关推荐
本文共计116个文字,预计阅读时间需要1分钟。
文件内容改写如下:
plaintextgistfile1.txt// 指针刚放到屏幕上 + touchS: function(e) {// console.log(touchS + e);// // 判断是否只有一个触摸点// if (e.touches.length===1) {// this.setData({// // 记录触摸起始位置的X坐标// startX: e.touches[0].clientX// });// }// }
//手指刚放到屏幕触发 touchS: function (e) { //console.log("touchS" + e); //判断是否只有一个触摸点 if (e.touches.length == 1) { this.setData({ //记录触摸起始位置的X坐标 startX: e.touches[0].clientX }); } },
本文共计116个文字,预计阅读时间需要1分钟。
文件内容改写如下:
plaintextgistfile1.txt// 指针刚放到屏幕上 + touchS: function(e) {// console.log(touchS + e);// // 判断是否只有一个触摸点// if (e.touches.length===1) {// this.setData({// // 记录触摸起始位置的X坐标// startX: e.touches[0].clientX// });// }// }
//手指刚放到屏幕触发 touchS: function (e) { //console.log("touchS" + e); //判断是否只有一个触摸点 if (e.touches.length == 1) { this.setData({ //记录触摸起始位置的X坐标 startX: e.touches[0].clientX }); } },

